Interface FloatScalarInterface.Rel<U extends Unit<U>,​R extends FloatScalarInterface.Rel<U,​R>>

Type Parameters:
U - the unit
R - the relative scalar
All Superinterfaces:
Cloneable, Comparable<R>, FloatScalarInterface<U,​R>, Relative<U,​R>, Scalar<U,​R>, Scalar.Rel<U,​R>, Serializable, Value<U,​R>, ValueFunctions<U,​R>
All Known Implementing Classes:
AbstractFloatScalarRel, AbstractFloatScalarRelWithAbs, FloatAbsorbedDose, FloatAcceleration, FloatAmountOfSubstance, FloatAngle, FloatAngularAcceleration, FloatAngularVelocity, FloatArea, FloatCatalyticActivity, FloatDensity, FloatDimensionless, FloatDuration, FloatElectricalCapacitance, FloatElectricalCharge, FloatElectricalConductance, FloatElectricalCurrent, FloatElectricalInductance, FloatElectricalPotential, FloatElectricalResistance, FloatEnergy, FloatEquivalentDose, FloatFlowMass, FloatFlowVolume, FloatForce, FloatFrequency, FloatIlluminance, FloatLength, FloatLinearDensity, FloatLuminousFlux, FloatLuminousIntensity, FloatMagneticFlux, FloatMagneticFluxDensity, FloatMass, FloatMomentum, FloatPower, FloatPressure, FloatRadioActivity, FloatSIScalar, FloatSolidAngle, FloatSpeed, FloatTemperature, FloatTorque, FloatVolume
Enclosing interface:
FloatScalarInterface<U extends Unit<U>,​S extends FloatScalarInterface<U,​S>>

public static interface FloatScalarInterface.Rel<U extends Unit<U>,​R extends FloatScalarInterface.Rel<U,​R>>
extends FloatScalarInterface<U,​R>, Scalar.Rel<U,​R>
Methods for Relative FloatScalar.

Copyright (c) 2019-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
  • Method Details

    • instantiateRel

      R instantiateRel​(float value, U unit)
      Construct a new Relative Immutable FloatScalar of the right type. Each extending class must implement this method.
      Parameters:
      value - float; the float value
      unit - U; the unit
      Returns:
      R a new relative instance of the FloatScalar of the right type