
public final class CurrencyDataJso extends JavaScriptObject implements CurrencyData
0 - ISO4217 currency code
1 - currency symbol to use for this locale
2 - flags and # of decimal digits:
d0-d2: # of decimal digits for this currency, 0-7
d3: currency symbol goes after number, 0=before
d4: currency symbol position is based on d3
d5: space is forced, 0=no space present
d6: spacing around currency symbol is based on d5
3 - portable currency symbol (optional)
4 - simple currency symbol (optional)
| Modifier | Constructor and Description |
|---|---|
protected |
CurrencyDataJso() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrencyCode()
Returns the ISO4217 code for this currency.
|
String |
getCurrencySymbol()
Returns the default symbol to use for this currency.
|
int |
getDefaultFractionDigits()
Returns the default number of decimal positions for this currency.
|
String |
getPortableCurrencySymbol()
Returns the default symbol to use for this currency, intended to be
recognizable in most locales.
|
String |
getSimpleCurrencySymbol()
Returns the simplest symbol to use for this currency, which is not guaranteed
to be unique -- for example, this might return "$" for both USD and CAD.
|
boolean |
isDeprecated()
Returns true if this currency is deprecated and should not be returned by
default in currency lists.
|
boolean |
isSpaceForced()
Returns true if there should always be a space between the currency symbol
and the number, false if there should be no space.
|
boolean |
isSpacingFixed()
Returns true if the spacing between the currency symbol and the number is
fixed regardless of locale defaults.
|
boolean |
isSymbolPositionFixed()
Returns true if the position of the currency symbol relative to the number
is fixed regardless of locale defaults.
|
boolean |
isSymbolPrefix()
Returns true if the currency symbol should go before the number, false if
it should go after the number.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringpublic String getCurrencyCode()
CurrencyDatagetCurrencyCode in interface CurrencyDatapublic String getCurrencySymbol()
CurrencyDatagetCurrencySymbol in interface CurrencyDatapublic int getDefaultFractionDigits()
CurrencyDatagetDefaultFractionDigits in interface CurrencyDatapublic String getPortableCurrencySymbol()
CurrencyDataCurrencyData.getCurrencySymbol().getPortableCurrencySymbol in interface CurrencyDatapublic String getSimpleCurrencySymbol()
CurrencyDataCurrencyData.getCurrencySymbol().getSimpleCurrencySymbol in interface CurrencyDatapublic boolean isDeprecated()
CurrencyDataisDeprecated in interface CurrencyDatapublic boolean isSpaceForced()
CurrencyDataCurrencyData.isSpacingFixed() returns true.isSpaceForced in interface CurrencyDatapublic boolean isSpacingFixed()
CurrencyDataCurrencyData.isSpaceForced().isSpacingFixed in interface CurrencyDatapublic boolean isSymbolPositionFixed()
CurrencyDataCurrencyData.isSymbolPrefix().isSymbolPositionFixed in interface CurrencyDatapublic boolean isSymbolPrefix()
CurrencyDataCurrencyData.isSymbolPositionFixed() is true.isSymbolPrefix in interface CurrencyDataCopyright © 2018. All rights reserved.