Code example for Currency

Methods: getCurrencyCodegetSymbol

0
    } 
     
    public void setCurrency(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(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);