AU - Absolute unitRU - Relative unitA - the absolute class for referenceR - the relative class for referencepublic abstract class AbstractFloatScalarAbs<AU extends AbsoluteLinearUnit<AU,RU>,A extends AbstractFloatScalarAbs<AU,A,RU,R>,RU extends Unit<RU>,R extends AbstractFloatScalarRel<RU,R>> extends AbstractFloatScalar<AU,A> implements Absolute, MathFunctionsAbs<A>, FloatMathFunctions<A>
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.
siNUMBER_PATTERN| Constructor and Description |
|---|
AbstractFloatScalarAbs(A value)
Construct a new Absolute Immutable FloatScalar from an existing Absolute Immutable FloatScalar.
|
AbstractFloatScalarAbs(float value,
AU unit)
Construct a new Absolute Immutable FloatScalar.
|
| Modifier and Type | Method and Description |
|---|---|
A |
ceil()
Set the value(s) to the smallest (closest to negative infinity) value(s) that are greater than or equal to the argument
and equal to a mathematical integer.
|
A |
divideBy(float constant)
Scale the value(s) by the inverse of a factor; i.e.
|
A |
floor()
Set the value(s) to the largest (closest to positive infinity) value(s) that are less than or equal to the argument and
equal to a mathematical integer.
|
abstract A |
instantiateAbs(float value,
AU unit)
Construct a new Absolute Immutable FloatScalar of the right type.
|
abstract R |
instantiateRel(float value,
RU unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
R |
minus(A decrement)
Decrement the value by the supplied value and return the result using the relative unit belonging to the unit of the
Absolute value.
|
A |
minus(R decrement)
Decrement the value by the supplied value and return the result using the current unit of the Absolute value.
|
A |
multiplyBy(float constant)
Scale the value(s) by a factor.
|
A |
plus(R increment)
Increment the value by the supplied value and return the result using the current unit of the Absolute value.
|
A |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
A |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
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, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit, stringOf, stringOfDefaultLocale, textualStringOf, textualStringOfDefaultLocalebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic AbstractFloatScalarAbs(float value,
AU unit)
value - float; the value of the new Absolute Immutable FloatScalarunit - AU; the unit of the new Absolute Immutable FloatScalarpublic AbstractFloatScalarAbs(A value)
value - A, an absolute typed FloatScalar; the referencepublic abstract A instantiateAbs(float value, AU unit)
value - float; the float valueunit - AU; the unitpublic abstract R instantiateRel(float value, RU unit)
value - float; the float valueunit - RU; the unitpublic final A plus(R increment)
increment - R, a relative typed FloatScalar; amount by which the value is incrementedpublic final A minus(R decrement)
decrement - R, a relative typed FloatScalar; amount by which the value is decrementedpublic final R minus(A decrement)
decrement - A, an absolute typed FloatScalar; amount by which the value is decrementedpublic A ceil()
ceil in interface MathFunctionsAbs<A extends AbstractFloatScalarAbs<AU,A,RU,R>>public A floor()
floor in interface MathFunctionsAbs<A extends AbstractFloatScalarAbs<AU,A,RU,R>>public A rint()
rint in interface MathFunctionsAbs<A extends AbstractFloatScalarAbs<AU,A,RU,R>>public A round()
round in interface MathFunctionsAbs<A extends AbstractFloatScalarAbs<AU,A,RU,R>>public A multiplyBy(float constant)
multiplyBy in interface FloatMathFunctions<A extends AbstractFloatScalarAbs<AU,A,RU,R>>constant - float; the multiplierpublic A divideBy(float constant)
divideBy in interface FloatMathFunctions<A extends AbstractFloatScalarAbs<AU,A,RU,R>>constant - float; the divisorCopyright © 2015–2019 Delft University of Technology. All rights reserved.