public class DefaultCurrencyData extends java.lang.Object implements CurrencyData
CurrencyData implementation, so new methods can be added
 to the interface without breaking implementors if a reasonable default is
 available.| Constructor and Description | 
|---|
| DefaultCurrencyData(java.lang.String currencyCode,
                   java.lang.String currencySymbol)Create a default default  CurrencyDatainstance, returningfalsefor allisFoomethods, having 2 fractional digits by
 default, and using the standard symbol for the portable symbol. | 
| DefaultCurrencyData(java.lang.String currencyCode,
                   java.lang.String currencySymbol,
                   int fractionDigits)Create a default default  CurrencyDatainstance, returningfalsefor allisFoomethods and using the standard symbol for the
 portable symbol. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getCurrencyCode()Returns the ISO4217 code for this currency. | 
| java.lang.String | getCurrencySymbol()Returns the default symbol to use for this currency. | 
| int | getDefaultFractionDigits()Returns the default number of decimal positions for this currency. | 
| java.lang.String | getPortableCurrencySymbol()Returns the default symbol to use for this currency, intended to be
 recognizable in most locales. | 
| java.lang.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. | 
public DefaultCurrencyData(java.lang.String currencyCode,
                           java.lang.String currencySymbol)
CurrencyData instance, returning false for all isFoo methods, having 2 fractional digits by
 default, and using the standard symbol for the portable symbol.currencyCode - ISO 4217 currency codecurrencySymbol - symbol to use for this currencypublic DefaultCurrencyData(java.lang.String currencyCode,
                           java.lang.String currencySymbol,
                           int fractionDigits)
CurrencyData instance, returning false for all isFoo methods and using the standard symbol for the
 portable symbol.currencyCode - ISO 4217 currency codecurrencySymbol - symbol to use for this currencyfractionDigits - default number of fraction digitspublic java.lang.String getCurrencyCode()
CurrencyDatagetCurrencyCode in interface CurrencyDatapublic java.lang.String getCurrencySymbol()
CurrencyDatagetCurrencySymbol in interface CurrencyDatapublic int getDefaultFractionDigits()
CurrencyDatagetDefaultFractionDigits in interface CurrencyDatapublic java.lang.String getPortableCurrencySymbol()
CurrencyDataCurrencyData.getCurrencySymbol().getPortableCurrencySymbol in interface CurrencyDatapublic java.lang.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 CurrencyData