AU
- Absolute unitRU
- Relative unitpublic static class DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> extends AbstractDoubleScalarAbs<AU,DoubleScalar.Abs<AU,RU>,RU,DoubleScalar.Rel<RU>>
si
Constructor and Description |
---|
Abs(double value,
AU unit)
Construct a new Absolute Immutable DoubleScalar.
|
Abs(DoubleScalar.Abs<AU,RU> value)
Construct a new Absolute Immutable DoubleScalar from an existing Absolute Immutable DoubleScalar.
|
Modifier and Type | Method and Description |
---|---|
DoubleScalar.Abs<AU,RU> |
instantiateAbs(double value,
AU unit)
Construct a new Absolute Immutable DoubleScalar of the right type.
|
DoubleScalar.Rel<RU> |
instantiateRel(double value,
RU unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
ceil, divideBy, floor, minus, minus, multiplyBy, plus, rint, round
compareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toString, toString, toString, toString
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
byteValue, shortValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
DIV, MULT, POW
public Abs(double value, AU unit)
value
- double; the value of the new Absolute Immutable DoubleScalarunit
- U; the unit of the new Absolute Immutable DoubleScalarpublic Abs(DoubleScalar.Abs<AU,RU> value)
value
- DoubleScalar.Abs<U>; the referencepublic final DoubleScalar.Abs<AU,RU> instantiateAbs(double value, AU unit)
instantiateAbs
in class AbstractDoubleScalarAbs<AU extends AbsoluteLinearUnit<AU,RU>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,RU extends Unit<RU>,DoubleScalar.Rel<RU extends Unit<RU>>>
value
- the double valueunit
- the unitpublic final DoubleScalar.Rel<RU> instantiateRel(double value, RU unit)
instantiateRel
in class AbstractDoubleScalarAbs<AU extends AbsoluteLinearUnit<AU,RU>,DoubleScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,RU extends Unit<RU>,DoubleScalar.Rel<RU extends Unit<RU>>>
value
- the double valueunit
- the unitCopyright © 2015–2018 Delft University of Technology. All rights reserved.