Class AbstractDoubleScalarRelWithAbs<AU extends AbsoluteLinearUnit<AU,​RU>,​A extends AbstractDoubleScalarAbs<AU,​A,​RU,​R>,​RU extends Unit<RU>,​R extends AbstractDoubleScalarRelWithAbs<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>, DoubleScalarInterface<RU,​R>, DoubleScalarInterface.Rel<RU,​R>, DoubleScalarInterface.RelWithAbs<AU,​A,​RU,​R>
Direct Known Subclasses:
Angle, Duration, Length, Temperature

public abstract class AbstractDoubleScalarRelWithAbs<AU extends AbsoluteLinearUnit<AU,​RU>,​A extends AbstractDoubleScalarAbs<AU,​A,​RU,​R>,​RU extends Unit<RU>,​R extends AbstractDoubleScalarRelWithAbs<AU,​A,​RU,​R>>
extends AbstractDoubleScalarRel<RU,​R>
implements DoubleScalarInterface.RelWithAbs<AU,​A,​RU,​R>
The typed, abstract DoubleScalarRelWithAbs class that forms the basis of the relative DoubleScalars 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

    • AbstractDoubleScalarRelWithAbs

      public AbstractDoubleScalarRelWithAbs​(double value, RU unit)
      Construct a new Relative Immutable DoubleScalar.
      Parameters:
      value - double; the value of the new Relative Immutable DoubleScalar
      unit - U; the unit of the new Relative Immutable DoubleScalar
    • AbstractDoubleScalarRelWithAbs

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