Interface FloatScalarInterface.Abs<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>>

Type Parameters:
AU - the absolute unit belonging to the absoluteunit
A - the absolute scalar belonging to the relative scalar
RU - the absolute unit belonging to the relative unit
R - the relative scalar belonging to the absolute scalar
All Superinterfaces:
Absolute, Cloneable, Comparable<A>, FloatScalarInterface<AU,​A>, Scalar<AU,​A>, Scalar.Abs<AU,​A,​RU,​R>, Serializable, Value<AU,​A>, ValueFunctions<AU,​A>
All Known Implementing Classes:
AbstractFloatScalarAbs, FloatAbsoluteTemperature, FloatDirection, FloatPosition, FloatTime
Enclosing interface:
FloatScalarInterface<U extends Unit<U>,​S extends FloatScalarInterface<U,​S>>

public static interface FloatScalarInterface.Abs<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>>
extends FloatScalarInterface<AU,​A>, Scalar.Abs<AU,​A,​RU,​R>
Methods for Absolute Scalar.

Copyright (c) 2019-2019 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, 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 - U; 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