Interface FloatScalarInterface<U extends Unit<U>,​S extends FloatScalarInterface<U,​S>>

Type Parameters:
U - the unit for which this is the interface
S - the scalar type belonging to the unit
All Superinterfaces:
Cloneable, Comparable<S>, Scalar<U,​S>, Serializable, Value<U,​S>, ValueFunctions<U,​S>
All Known Subinterfaces:
FloatScalarInterface.Abs<AU,​A,​RU,​R>, FloatScalarInterface.Rel<U,​R>, FloatScalarInterface.RelWithAbs<AU,​A,​RU,​R>
All Known Implementing Classes:
AbstractFloatScalar, AbstractFloatScalarAbs, AbstractFloatScalarRel, AbstractFloatScalarRelWithAbs, FloatAbsoluteTemperature, FloatAbsorbedDose, FloatAcceleration, FloatAmountOfSubstance, FloatAngle, FloatAngularAcceleration, FloatAngularVelocity, FloatArea, FloatCatalyticActivity, FloatDensity, FloatDimensionless, FloatDirection, FloatDuration, FloatElectricalCapacitance, FloatElectricalCharge, FloatElectricalConductance, FloatElectricalCurrent, FloatElectricalInductance, FloatElectricalPotential, FloatElectricalResistance, FloatEnergy, FloatEquivalentDose, FloatFlowMass, FloatFlowVolume, FloatForce, FloatFrequency, FloatIlluminance, FloatLength, FloatLinearDensity, FloatLuminousFlux, FloatLuminousIntensity, FloatMagneticFlux, FloatMagneticFluxDensity, FloatMass, FloatMomentum, FloatPosition, FloatPower, FloatPressure, FloatRadioActivity, FloatSIScalar, FloatSolidAngle, FloatSpeed, FloatTemperature, FloatTime, FloatTorque, FloatVolume

public interface FloatScalarInterface<U extends Unit<U>,​S extends FloatScalarInterface<U,​S>>
extends Scalar<U,​S>
Float scalar functions.

Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Details

    • getSI

      float getSI()
      Retrieve the value in the underlying SI unit.
      Returns:
      float
    • getInUnit

      float getInUnit()
      Retrieve the value in the original unit.
      Returns:
      float
    • getInUnit

      float getInUnit​(U targetUnit)
      Retrieve the value converted into some specified unit.
      Parameters:
      targetUnit - U; the unit to convert the value into
      Returns:
      float