|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.golibri.common.finance.Currency
If you need to work with currencies, this is the class you want. Currency objects are created with
a currency code. This can be a String or a org.golibri.iso.CurrencyCode.
CurrencyCode| Constructor Summary | |
Currency(CurrencyCode currencyCode)
Constructor. |
|
Currency(java.lang.String currencyCode)
Constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
|
CurrencyCode |
getCurrencyCode()
Gets the currency code of this currency object. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Currency(java.lang.String currencyCode)
currencyCode - String parameter containing the currency code
java.lang.NullPointerException - If the parameter currencyCode is null
java.lang.IllegalArgumentException - If the given currency code doesn't existpublic Currency(CurrencyCode currencyCode)
currencyCode - The currency code
java.lang.NullPointerException - If the parameter currencyCode is null
java.lang.IllegalArgumentException - If the given currency code doesn't exist| Method Detail |
public CurrencyCode getCurrencyCode()
public java.lang.String toString()
Object.toString()public int hashCode()
Object.hashCode()public boolean equals(java.lang.Object object)
Object.equals(java.lang.Object)
|
Golibri | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||