com.pcauto.util
Class Units

java.lang.Object
  extended bycom.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
 
Method Summary
abstract  double convertFrom(double value, Units srcUnits)
           
abstract  Units[] getAll()
           
 java.lang.String getDesc()
           
 int getId()
           
 java.lang.String getString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

str

protected java.lang.String str

desc

protected java.lang.String desc

id

protected int id
Constructor Detail

Units

protected Units(java.lang.String str,
                java.lang.String desc)
Creates a new instance of Units

Method Detail

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)