AU
- Absolute unitRU
- Relative unitpublic static class FloatScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>> extends AbstractFloatScalarAbs<AU,FloatScalar.Abs<AU,RU>,RU,FloatScalar.Rel<RU>>
si
Constructor and Description |
---|
Abs(float value,
AU unit)
Construct a new Absolute Immutable FloatScalar.
|
Abs(FloatScalar.Abs<AU,RU> value)
Construct a new Absolute Immutable FloatScalar from an existing Absolute Immutable FloatScalar.
|
Modifier and Type | Method and Description |
---|---|
FloatScalar.Abs<AU,RU> |
instantiateAbs(float value,
AU unit)
Construct a new Absolute Immutable FloatScalar of the right type.
|
FloatScalar.Rel<RU> |
instantiateRel(float value,
RU unit)
Construct a new Relative Immutable FloatScalar 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(float value, AU unit)
value
- float; the value of the new Absolute Immutable FloatScalarunit
- U; the unit of the new Absolute Immutable FloatScalarpublic Abs(FloatScalar.Abs<AU,RU> value)
value
- FloatScalar.Abs<U>; the referencepublic final FloatScalar.Abs<AU,RU> instantiateAbs(float value, AU unit)
instantiateAbs
in class AbstractFloatScalarAbs<AU extends AbsoluteLinearUnit<AU,RU>,FloatScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,RU extends Unit<RU>,FloatScalar.Rel<RU extends Unit<RU>>>
value
- the float valueunit
- the unitpublic final FloatScalar.Rel<RU> instantiateRel(float value, RU unit)
instantiateRel
in class AbstractFloatScalarAbs<AU extends AbsoluteLinearUnit<AU,RU>,FloatScalar.Abs<AU extends AbsoluteLinearUnit<AU,RU>,RU extends Unit<RU>>,RU extends Unit<RU>,FloatScalar.Rel<RU extends Unit<RU>>>
value
- the float valueunit
- the unitCopyright © 2015–2018 Delft University of Technology. All rights reserved.