Package org.djunits.value.base
Interface Scalar.RelWithAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends Scalar.RelWithAbs<AU,A,RU,R>>
- Type Parameters:
AU
- the absolute unit belonging to the absoluteunitA
- the absolute scalar belonging to the relative scalarRU
- the absolute unit belonging to the relative unitR
- the relative scalar belonging to the absolute scalar
- All Superinterfaces:
Cloneable
,Comparable<R>
,Relative<RU,R>
,Scalar<RU,R>
,Scalar.Rel<RU,R>
,Serializable
,Value<RU,R>
,ValueFunctions<RU,R>
- All Known Subinterfaces:
DoubleScalarInterface.RelWithAbs<AU,A,RU,R>
,FloatScalarInterface.RelWithAbs<AU,A,RU,R>
- All Known Implementing Classes:
AbstractDoubleScalarRelWithAbs
,AbstractFloatScalarRelWithAbs
,Angle
,Duration
,FloatAngle
,FloatDuration
,FloatLength
,FloatTemperature
,Length
,Temperature
public static interface Scalar.RelWithAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends Scalar.RelWithAbs<AU,A,RU,R>> extends Scalar.Rel<RU,R>
Additional methods for Relative Scalar that has a corresponding Absolute Scalar. An example is the relative scalar Length
that has a corresponding absolute scalar Position.
Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.djunits.value.base.Scalar
Scalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends Scalar.RelWithAbs<AU,A,RU,R>>, Scalar.Rel<U extends Unit<U>,R extends Scalar.Rel<U,R>>, Scalar.RelWithAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends Scalar.Abs<AU,A,RU,R>,RU extends Unit<RU>,R extends Scalar.RelWithAbs<AU,A,RU,R>>
-
Method Summary
Methods inherited from interface org.djunits.value.base.Scalar
eq, eq0, ge, ge0, gt, gt0, le, le0, lt, lt0, ne, ne0, toDisplayString, toDisplayString, toTextualString, toTextualString
Methods inherited from interface org.djunits.value.Value
getDisplayUnit, isAbsolute, isRelative, setDisplayUnit, toString, toString, toString, toString
-
Method Details
-
plus
Add an Absolute value to this relative value. A new value is returned due to immutability. The unit of the result is the unit of the absolute operand.- Parameters:
abs
- A; A the right operand- Returns:
- A; the sum of this value and the operand
-