Class AbstractFloatScalarRelWithAbs<AU extends AbsoluteLinearUnit<AU,​RU>,​A extends AbstractFloatScalarAbs<AU,​A,​RU,​R>,​RU extends Unit<RU>,​R extends AbstractFloatScalarRelWithAbs<AU,​A,​RU,​R>>

Type Parameters:
AU - the absolute unit
A - the Absolute class for reference purposes
RU - the relative unit
R - the Relative class for reference purposes
All Implemented Interfaces:
Serializable, Cloneable, Comparable<R>, Scalar<RU,​R>, Scalar.Rel<RU,​R>, Scalar.RelWithAbs<AU,​A,​RU,​R>, ValueFunctions<RU,​R>, Relative<RU,​R>, Value<RU,​R>, FloatScalarInterface<RU,​R>, FloatScalarInterface.Rel<RU,​R>, FloatScalarInterface.RelWithAbs<AU,​A,​RU,​R>
Direct Known Subclasses:
FloatAngle, FloatDuration, FloatLength, FloatTemperature

public abstract class AbstractFloatScalarRelWithAbs<AU extends AbsoluteLinearUnit<AU,​RU>,​A extends AbstractFloatScalarAbs<AU,​A,​RU,​R>,​RU extends Unit<RU>,​R extends AbstractFloatScalarRelWithAbs<AU,​A,​RU,​R>>
extends AbstractFloatScalarRel<RU,​R>
implements FloatScalarInterface.RelWithAbs<AU,​A,​RU,​R>
The typed, abstract FloatScalarRelWithAbs class that forms the basis of the relative FloatScalars suck as Duration that have an absolute equivalent such as Time.

Copyright (c) 2013-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, Peter Knoppers, Wouter Schakel
See Also:
Serialized Form
  • Constructor Details

    • AbstractFloatScalarRelWithAbs

      public AbstractFloatScalarRelWithAbs​(float value, RU unit)
      Construct a new Relative Immutable FloatScalar.
      Parameters:
      value - float; the value of the new Relative Immutable FloatScalar
      unit - U; the unit of the new Relative Immutable FloatScalar
    • AbstractFloatScalarRelWithAbs

      public AbstractFloatScalarRelWithAbs​(R value)
      Construct a new Relative Immutable FloatScalar from an existing Relative Immutable FloatScalar.
      Parameters:
      value - R, a relative typed FloatScalar; the reference
  • Method Details