Interface FloatScalarInterface.RelWithAbs<AU extends AbsoluteLinearUnit<AU,​RU>,​A extends FloatScalarInterface.Abs<AU,​A,​RU,​R>,​RU extends Unit<RU>,​R extends FloatScalarInterface.RelWithAbs<AU,​A,​RU,​R>>

    • Method Detail

      • instantiateRel

        R instantiateRel​(float value,
                         RU 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 - RU; the unit
        Returns:
        R a new relative instance of the FloatScalar of the right type
      • instantiateAbs

        A instantiateAbs​(float value,
                         AU unit)
        Construct a new Absolute Immutable FloatScalar of the right type. Each extending class must implement this method.
        Parameters:
        value - float; the float value
        unit - AU; the absolute unit
        Returns:
        A a new absolute instance of the FloatScalar of the right type