public class OperableUnit<T extends Comparable<T>,U> extends Operable<T> implements IUnit<U>
| Constructor and Description |
|---|
OperableUnit(T value,
IConvertableUnit<T,U> converter)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T1 extends Comparable<T1>,U1> |
convert(IConvertableUnit<T1,U1> convertableUnit)
converts the own value to the given operableunit.
|
U |
getUnit()
defines the unit of a value
|
String |
toString() |
add, checkConverter, divide, getConversion, getDelta, getDiff, getDivision, getMultiplication, getSum, getValue, isGreater, isLower, max, min, multiply, subtractpublic OperableUnit(T value, IConvertableUnit<T,U> converter)
value - converter - public <T1 extends Comparable<T1>,U1> OperableUnit<T1,U1> convert(IConvertableUnit<T1,U1> convertableUnit)
convertableUnit - new unit, to convert the own value toCopyright © 2012–2020. All rights reserved.