All Packages Class Hierarchy This Package Previous Next Index
Class benno.account.db.Currency
java.lang.Object
|
+----benno.account.db.Currency
- public final class Currency
- extends Object
- implements Serializable
This class represents a Currency.
- Version:
- $Revision: 1.8 $
- Author:
- Ben Clifford
-
Currency(String, String, int)
-
-
format(long)
- Formats the supplied minor units value for display to the
user.
-
formatPlain(long)
- Formats the supplied minor units value as a string without
currency symbols.
-
getDesc()
- Accessor method
-
getPlaces()
- Accessor method
-
getSymbol()
- Accessor method
-
modulus()
- Returns 10 to the power of the number of places,
i.e.
-
setDesc(String)
- Accessor method
-
setPlaces(int)
- Accessor method
-
setSymbol(String)
- Accessor method
-
toString()
-
Currency
public Currency(String d,
String s,
int p)
getDesc
public String getDesc()
- Accessor method
setDesc
public void setDesc(String d)
- Accessor method
getSymbol
public String getSymbol()
- Accessor method
setSymbol
public void setSymbol(String s)
- Accessor method
getPlaces
public int getPlaces()
- Accessor method
setPlaces
public void setPlaces(int i)
- Accessor method
modulus
public long modulus()
- Returns 10 to the power of the number of places,
i.e. a factor used to multiply/divide to convert between
major and minor units.
formatPlain
public String formatPlain(long units)
- Formats the supplied minor units value as a string without
currency symbols.
format
public String format(long units)
- Formats the supplied minor units value for display to the
user.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index