|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.icu.util.Currency
A class encapsulating a currency, as defined by ISO 4217. A Currency object can be created given a Locale or given an ISO 4217 code. Once created, the Currency object can return various data necessary to its proper display:
Note: This class deliberately resembles java.util.Currency but it has a completely independent implementation, and adds features not present in the JDK.
Method Summary | |
java.lang.String |
getCurrencyCode()
Returns the ISO 4217 3-letter code for this currency object. |
int |
getDefaultFractionDigits()
Returns the number of the number of fraction digits that should be displayed for this currency. |
static Currency |
getInstance(java.util.Locale locale)
Returns a currency object for the default currency in the given locale. |
static Currency |
getInstance(java.lang.String theISOCode)
Returns a currency object given an ISO 4217 3-letter code. |
double |
getRoundingIncrement()
Returns the rounding increment for this currency, or 0.0 if no rounding is done by this currency. |
java.lang.String |
getSymbol(java.util.Locale locale)
Returns the display string for this currency object in the given locale. |
java.lang.String |
toString()
Returns the ISO 4217 code for this currency. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static Currency getInstance(java.util.Locale locale)
public static Currency getInstance(java.lang.String theISOCode)
public java.lang.String getCurrencyCode()
public java.lang.String getSymbol(java.util.Locale locale)
public int getDefaultFractionDigits()
public double getRoundingIncrement()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |