Interface DoubleScalarInterface<U extends Unit<U>,​S extends DoubleScalarInterface<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:
DoubleScalarInterface.Abs<AU,​A,​RU,​R>, DoubleScalarInterface.Rel<U,​R>, DoubleScalarInterface.RelWithAbs<AU,​A,​RU,​R>
All Known Implementing Classes:
AbsoluteTemperature, AbsorbedDose, AbstractDoubleScalar, AbstractDoubleScalarAbs, AbstractDoubleScalarRel, AbstractDoubleScalarRelWithAbs, Acceleration, AmountOfSubstance, Angle, AngularAcceleration, AngularVelocity, Area, CatalyticActivity, Density, Dimensionless, Direction, Duration, ElectricalCapacitance, ElectricalCharge, ElectricalConductance, ElectricalCurrent, ElectricalInductance, ElectricalPotential, ElectricalResistance, Energy, EquivalentDose, FlowMass, FlowVolume, Force, Frequency, Illuminance, Length, LinearDensity, LuminousFlux, LuminousIntensity, MagneticFlux, MagneticFluxDensity, Mass, Momentum, Position, Power, Pressure, RadioActivity, SIScalar, SolidAngle, Speed, Temperature, Time, Torque, Volume

public interface DoubleScalarInterface<U extends Unit<U>,​S extends DoubleScalarInterface<U,​S>>
extends Scalar<U,​S>
Double 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

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

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

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