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

Constructor Index

 o Currency(String, String, int)

Method Index

 o format(long)
Formats the supplied minor units value for display to the user.
 o formatPlain(long)
Formats the supplied minor units value as a string without currency symbols.
 o getDesc()
Accessor method
 o getPlaces()
Accessor method
 o getSymbol()
Accessor method
 o modulus()
Returns 10 to the power of the number of places, i.e.
 o setDesc(String)
Accessor method
 o setPlaces(int)
Accessor method
 o setSymbol(String)
Accessor method
 o toString()

Constructors

 o Currency
 public Currency(String d,
                 String s,
                 int p)

Methods

 o getDesc
 public String getDesc()
Accessor method

 o setDesc
 public void setDesc(String d)
Accessor method

 o getSymbol
 public String getSymbol()
Accessor method

 o setSymbol
 public void setSymbol(String s)
Accessor method

 o getPlaces
 public int getPlaces()
Accessor method

 o setPlaces
 public void setPlaces(int i)
Accessor method

 o 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.

 o formatPlain
 public String formatPlain(long units)
Formats the supplied minor units value as a string without currency symbols.

 o format
 public String format(long units)
Formats the supplied minor units value for display to the user.

 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index