Code example for DecimalFormatSymbols

Methods: getCurrencySymbol, getDecimalSeparator, getDigit, getGroupingSeparator, getInfinity, getInternationalCurrencySymbol, getMinusSign, getMonetaryDecimalSeparator, getNaN, getPatternSeparator

0
     */ 
    private BigDecimal multiplierBigDecimal = null;
 
    public NativeDecimalFormat(String pattern, DecimalFormatSymbols dfs) {
        try { 
            this.addr = openDecimalFormatImpl(pattern, dfs.getCurrencySymbol(),
                    dfs.getDecimalSeparator(), dfs.getDigit(), dfs.getGroupingSeparator(),
                    dfs.getInfinity(), dfs.getInternationalCurrencySymbol(), dfs.getMinusSign(),
                    dfs.getMonetaryDecimalSeparator(), dfs.getNaN(), dfs.getPatternSeparator(),
                    dfs.getPercent(), dfs.getPerMill(), dfs.getZeroDigit());
            this.lastPattern = pattern;
        } catch (NullPointerException npe) {
            throw npe;
        } catch (RuntimeException re) {
            throw new IllegalArgumentException("syntax error: " + re.getMessage() + ": " + pattern);
        } 
    } 
 
    // Used to implement clone. 
    private NativeDecimalFormat(NativeDecimalFormat other) {
        this.addr = cloneDecimalFormatImpl(other.addr);