public class IdentityUnitConverter extends java.lang.Object implements UnitConverter
Constructor and Description |
---|
IdentityUnitConverter()
Create a new unit converter.
|
Modifier and Type | Method and Description |
---|---|
double |
convertToReferenceUnit(double specific)
Convert a value from the specific unit to the reference unit.
|
double |
convertToSpecificUnit(double ref)
Convert a value from the reference unit to the specific unit.
|
public IdentityUnitConverter()
public double convertToReferenceUnit(double specific)
UnitConverter
convertToReferenceUnit
in interface UnitConverter
specific
- The value to convertpublic double convertToSpecificUnit(double ref)
UnitConverter
convertToSpecificUnit
in interface UnitConverter
ref
- The reference value