public class DecimalSymbols extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
protected boolean |
amCurrency |
String |
currencySymbol |
String |
decimalSymbol |
char[] |
digits
The native decimal digits.
|
int[] |
groupings
The number of digits to be grouped starting with the least significant
going up.
|
String |
groupSymbol |
protected Locale |
myLocale |
String |
negativeFormat |
String |
negativeSymbol |
String |
positiveFormat |
String |
positiveSymbol |
Constructor and Description |
---|
DecimalSymbols(Locale loc,
boolean isCurrency)
Create a new DecimalSymbols with values retrieved from the specified locale.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Create a field for field copy of this Object if this Object
implements the Cloneable interface.
|
static DecimalSymbols |
getFor(Locale loc,
boolean isCurrency)
This uses a Hashtable to keep DecimalSymbols for Locales so that you
don't need to keep creating new DecimalSymbols.
|
char |
toEnglishDigit(char nativeDigit)
Convert a possible native digit to the equivalent English digit.
|
public String currencySymbol
public String groupSymbol
public String decimalSymbol
public String negativeSymbol
public String positiveSymbol
public String positiveFormat
public String negativeFormat
public int[] groupings
public char[] digits
protected Locale myLocale
protected boolean amCurrency
public DecimalSymbols(Locale loc, boolean isCurrency)
loc
- the Locale to use. If it is null the default Locale is used.isCurrency
- true to get symbols for currency, false for decimal symbols.public Object clone()
Object
public static DecimalSymbols getFor(Locale loc, boolean isCurrency)
loc
- the Locale. If it is null the default Locale is used.isCurrency
- true for currency symbols, false for decimal symbols.public char toEnglishDigit(char nativeDigit)
nativeDigit
- the possible native digit.