|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.units.IdentityUnitConverter
public class IdentityUnitConverter
A unit "converter" that doesn't modify the values.
Constructor Summary | |
---|---|
IdentityUnitConverter()
Create a new unit converter. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdentityUnitConverter()
Method Detail |
---|
public double convertToReferenceUnit(double specific)
UnitConverter
convertToReferenceUnit
in interface UnitConverter
specific
- The value to convert
public double convertToSpecificUnit(double ref)
UnitConverter
convertToSpecificUnit
in interface UnitConverter
ref
- The reference value
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |