com.pcauto.util
Class Units
java.lang.Object
com.pcauto.util.Units
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- CurrencyUnits, DensityUnits, DimensionUnits, DistanceUnits, TemperatureUnits, VolumeUnits, WeightUnits
- public abstract class Units
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
desc
|
protected int |
id
|
protected java.lang.String |
str
|
Constructor Summary |
protected |
Units(java.lang.String str,
java.lang.String desc)
Creates a new instance of Units |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
str
protected java.lang.String str
desc
protected java.lang.String desc
id
protected int id
Units
protected Units(java.lang.String str,
java.lang.String desc)
- Creates a new instance of Units
getId
public int getId()
getString
public java.lang.String getString()
getDesc
public java.lang.String getDesc()
toString
public java.lang.String toString()
getAll
public abstract Units[] getAll()
convertFrom
public abstract double convertFrom(double value,
Units srcUnits)