com.pcauto.util
Class CurrencyUnits

java.lang.Object
  extended bycom.pcauto.util.Units
      extended bycom.pcauto.util.CurrencyUnits
All Implemented Interfaces:
java.io.Serializable

public final class CurrencyUnits
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

Field Summary
static CurrencyUnits[] ALL
           
static CurrencyUnits AUS_DOLLARS
           
static CurrencyUnits CAN_DOLLARS
           
static CurrencyUnits EURO
           
static CurrencyUnits US_DOLLARS
           
 
Fields inherited from class com.pcauto.util.Units
desc, id, str
 
Method Summary
 double convertFrom(double value, Units srcUnits)
           
 Units[] getAll()
           
 
Methods inherited from class com.pcauto.util.Units
getDesc, getId, getString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CAN_DOLLARS

public static final CurrencyUnits CAN_DOLLARS

US_DOLLARS

public static final CurrencyUnits US_DOLLARS

AUS_DOLLARS

public static final CurrencyUnits AUS_DOLLARS

EURO

public static final CurrencyUnits EURO

ALL

public static final CurrencyUnits[] ALL
Method Detail

convertFrom

public double convertFrom(double value,
                          Units srcUnits)
Specified by:
convertFrom in class Units

getAll

public Units[] getAll()
Specified by:
getAll in class Units