Methods Summary |
---|
public java.lang.Object | clone()
int addr = NativeDecimalFormat.cloneImpl(this.addr);
Locale loc = (Locale) this.loc.clone();
return new DecimalFormatSymbols(addr, loc);
|
public boolean | equals(java.lang.Object object)
if(object == null) {
return false;
}
if(!(object instanceof DecimalFormatSymbols)) {
return false;
}
DecimalFormatSymbols sym = (DecimalFormatSymbols) object;
if(sym.addr == this.addr) {
return true;
}
boolean result = true;
Currency objCurr = sym.getCurrency();
Currency thisCurr = this.getCurrency();
if(objCurr != null) {
result &= objCurr.getCurrencyCode().equals(thisCurr.getCurrencyCode());
result &= objCurr.getSymbol().equals(thisCurr.getSymbol());
result &= objCurr.getDefaultFractionDigits() == thisCurr.getDefaultFractionDigits();
} else {
result &= thisCurr == null;
}
result &= sym.getCurrencySymbol().equals(this.getCurrencySymbol());
result &= sym.getDecimalSeparator() == this.getDecimalSeparator();
result &= sym.getDigit() == this.getDigit();
result &= sym.getGroupingSeparator() == this.getGroupingSeparator();
result &= sym.getInfinity().equals(this.getInfinity());
result &= sym.getInternationalCurrencySymbol().equals(
this.getInternationalCurrencySymbol());
result &= sym.getMinusSign() == this.getMinusSign();
result &= sym.getMonetaryDecimalSeparator() ==
this.getMonetaryDecimalSeparator();
result &= sym.getNaN().equals(this.getNaN());
result &= sym.getPatternSeparator() == this.getPatternSeparator();
result &= sym.getPercent() == this.getPercent();
result &= sym.getPerMill() == this.getPerMill();
result &= sym.getZeroDigit() == this.getZeroDigit();
return result;
|
protected void | finalize()
NativeDecimalFormat.closeDecimalFormatImpl(this.addr);
|
int | getAddr()
return this.addr;
|
public java.util.Currency | getCurrency()
String curr = NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_INTL_CURRENCY_SYMBOL.ordinal());
if(curr.equals("") || curr.equals("\u00a4\u00a4")) {
return null;
}
return Currency.getInstance(curr);
|
public java.lang.String | getCurrencySymbol()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_CURRENCY_SYMBOL.ordinal());
|
public char | getDecimalSeparator()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_DECIMAL_SEPARATOR_SYMBOL.ordinal())
.charAt(0);
|
public char | getDigit()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_DIGIT_SYMBOL.ordinal())
.charAt(0);
|
public char | getGroupingSeparator()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_GROUPING_SEPARATOR_SYMBOL.ordinal())
.charAt(0);
|
public java.lang.String | getInfinity()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_INFINITY_SYMBOL.ordinal());
|
public java.lang.String | getInternationalCurrencySymbol()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_INTL_CURRENCY_SYMBOL.ordinal());
|
java.util.Locale | getLocale()
return this.loc;
|
public char | getMinusSign()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_MINUS_SIGN_SYMBOL.ordinal())
.charAt(0);
|
public char | getMonetaryDecimalSeparator()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_MONETARY_SEPARATOR_SYMBOL.ordinal())
.charAt(0);
|
public java.lang.String | getNaN()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_NAN_SYMBOL.ordinal());
|
public char | getPatternSeparator()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_PATTERN_SEPARATOR_SYMBOL.ordinal())
.charAt(0);
|
public char | getPerMill()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_PERMILL_SYMBOL.ordinal())
.charAt(0);
|
public char | getPercent()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_PERCENT_SYMBOL.ordinal())
.charAt(0);
|
public char | getZeroDigit()
return NativeDecimalFormat.getSymbol(this.addr,
UNumberFormatSymbol.UNUM_ZERO_DIGIT_SYMBOL.ordinal())
.charAt(0);
|
public void | setCurrency(java.util.Currency currency)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_CURRENCY_SYMBOL.ordinal(),
currency.getSymbol());
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_INTL_CURRENCY_SYMBOL.ordinal(),
currency.getCurrencyCode());
|
public void | setCurrencySymbol(java.lang.String symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_CURRENCY_SYMBOL.ordinal(),
symbol);
|
public void | setDecimalSeparator(char symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_DECIMAL_SEPARATOR_SYMBOL.ordinal(),
"" + symbol);
|
public void | setDigit(char symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_DIGIT_SYMBOL.ordinal(),
"" + symbol);
|
public void | setGroupingSeparator(char symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_GROUPING_SEPARATOR_SYMBOL.ordinal(),
"" + symbol);
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL.ordinal(),
"" + symbol);
|
public void | setInfinity(java.lang.String symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_INFINITY_SYMBOL.ordinal(),
symbol);
|
public void | setInternationalCurrencySymbol(java.lang.String symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_INTL_CURRENCY_SYMBOL.ordinal(),
symbol);
|
public void | setMinusSign(char symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_MINUS_SIGN_SYMBOL.ordinal(),
"" + symbol);
|
public void | setMonetaryDecimalSeparator(char symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_MONETARY_SEPARATOR_SYMBOL.ordinal(),
"" + symbol);
|
public void | setNaN(java.lang.String symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_NAN_SYMBOL.ordinal(),
"" + symbol);
|
public void | setPatternSeparator(char symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_PATTERN_SEPARATOR_SYMBOL.ordinal(),
"" + symbol);
|
public void | setPerMill(char symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_PERMILL_SYMBOL.ordinal(),
"" + symbol);
|
public void | setPercent(char symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_PERCENT_SYMBOL.ordinal(),
"" + symbol);
|
public void | setZeroDigit(char symbol)
NativeDecimalFormat.setSymbol(this.addr,
UNumberFormatSymbol.UNUM_ZERO_DIGIT_SYMBOL.ordinal(),
"" + symbol);
|