U
- Unitpublic static class FloatScalar.Rel<U extends Unit<U>> extends FloatScalar<U> implements Relative, Comparable<FloatScalar.Rel<U>>
FloatScalar.Abs<U extends Unit<U>>, FloatScalar.Rel<U extends Unit<U>>
Constructor and Description |
---|
FloatScalar.Rel(FloatScalar.Rel<U> value)
Construct a new Relative Immutable FloatScalar from an existing Relative Immutable FloatScalar.
|
FloatScalar.Rel(float value,
U unit)
Construct a new Relative Immutable FloatScalar.
|
FloatScalar.Rel(MutableFloatScalar.Rel<U> value)
Construct a new Relative Immutable FloatScalar from an existing Relative MutableFloatScalar.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FloatScalar.Rel<U> o) |
FloatScalar.Rel<U> |
copy()
Create a deep copy of this Value.
|
MutableFloatScalar.Rel<U> |
mutable()
Create a mutable version of this FloatScalar.
|
divide, divide, doubleValue, equals, floatValue, getInUnit, getInUnit, getSI, hashCode, initialize, initialize, interpolate, interpolate, intValue, longValue, minus, minus, minus, multiply, multiply, plus, plus, setValueSI, toString, toString, toString, toString
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative
byteValue, shortValue
public FloatScalar.Rel(float value, U unit)
value
- float; the value of the new Relative Immutable FloatScalarunit
- U; the unit of the new Relative Immutable FloatScalarpublic FloatScalar.Rel(FloatScalar.Rel<U> value)
value
- FloatScalar.Rel<U>; the referencepublic FloatScalar.Rel(MutableFloatScalar.Rel<U> value)
value
- MutableFloatScalar.Rel<U>; the referencepublic final MutableFloatScalar.Rel<U> mutable()
mutable
in class FloatScalar<U extends Unit<U>>
public final int compareTo(FloatScalar.Rel<U> o)
compareTo
in interface Comparable<FloatScalar.Rel<U extends Unit<U>>>
Copyright © 2014–2015 Delft University of Technology. All rights reserved.