com.pcauto.util
Class WeightUnits
java.lang.Object
com.pcauto.util.Units
com.pcauto.util.WeightUnits
- All Implemented Interfaces:
- java.io.Serializable
- public final class WeightUnits
- extends Units
Used Java typesafe enum pattern to port C++ enum.
See http://developer.java.sun.com/developer/Books/shiftintojava/page1.html#replaceenums.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
KILOGRAM
public static final WeightUnits KILOGRAM
GRAM
public static final WeightUnits GRAM
TONNE
public static final WeightUnits TONNE
TON
public static final WeightUnits TON
POUND
public static final WeightUnits POUND
OUNCE
public static final WeightUnits OUNCE
ALL
public static final WeightUnits[] ALL
getAll
public Units[] getAll()
- Specified by:
getAll
in class Units
convertFrom
public double convertFrom(double value,
Units srcUnits)
- Specified by:
convertFrom
in class Units