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

    • Method Detail

      • instantiateRel

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

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