U
- Unitpublic static class DoubleScalar.Rel<U extends Unit<U>> extends AbstractDoubleScalarRel<U,DoubleScalar.Rel<U>>
si
Constructor and Description |
---|
Rel(DoubleScalar.Rel<U> value)
Construct a new Relative Immutable DoubleScalar from an existing Relative Immutable DoubleScalar.
|
Rel(double value,
U unit)
Construct a new Relative Immutable DoubleScalar.
|
Modifier and Type | Method and Description |
---|---|
DoubleScalar.Rel<U> |
instantiateRel(double value,
U unit)
Construct a new Relative Immutable DoubleScalar of the right type.
|
abs, ceil, divideBy, floor, interpolate, minus, multiplyBy, neg, 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 Rel(double value, U unit)
value
- double; the value of the new Relative Immutable DoubleScalarunit
- U; the unit of the new Relative Immutable DoubleScalarpublic Rel(DoubleScalar.Rel<U> value)
value
- DoubleScalar.Rel<U>; the referencepublic final DoubleScalar.Rel<U> instantiateRel(double value, U unit)
instantiateRel
in class AbstractDoubleScalarRel<U extends Unit<U>,DoubleScalar.Rel<U extends Unit<U>>>
value
- double; the double valueunit
- U; the unitCopyright © 2015–2019 Delft University of Technology. All rights reserved.