org.objectweb.jac.aspects.gui
Class Currency

java.lang.Object
  |
  +--org.objectweb.jac.aspects.gui.Currency

public class Currency
extends Object

Holds information about a currency: its name, display precision and change rate.


Constructor Summary
Currency(String name, int precision, double rate)
          Constructs the currency.
 
Method Summary
 String getName()
          Gets the currency name.
 int getPrecision()
          Gets the currency precision.
 double getRate()
          Gets the exchange rate regarding the default currency.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Currency

public Currency(String name,
                int precision,
                double rate)
Constructs the currency.

Parameters:
name - the currency name
precision - the currency precision (decimal number)
rate - the exchange rate regarding the default currency
Method Detail

getName

public String getName()
Gets the currency name.


getPrecision

public int getPrecision()
Gets the currency precision.


getRate

public double getRate()
Gets the exchange rate regarding the default currency.