public static class UnitsConverter.Appended extends UnitsConverter
UnitsConverter.Appended, UnitsConverter.ScaleOffset| Constructor and Description |
|---|
Appended(UnitsConverter uc1,
UnitsConverter uc2) |
| Modifier and Type | Method and Description |
|---|---|
double |
convert(double value)
convert the value in the source units to the target units.
|
java.lang.Number |
convert(java.lang.Number value)
convert the value in the source units to the target units,
preserving the data type.
|
UnitsConverter |
getInverse() |
java.lang.String |
toString() |
append, getConverterpublic Appended(UnitsConverter uc1, UnitsConverter uc2)
public double convert(double value)
UnitsConverterconvert in class UnitsConvertervalue - value in source units.public java.lang.Number convert(java.lang.Number value)
UnitsConverterconvert in class UnitsConvertervalue - value in source units.public UnitsConverter getInverse()
getInverse in class UnitsConverterpublic java.lang.String toString()
toString in class java.lang.Object