Code example for NumberFormat

Methods: clone

0
     * @return The number format (never <code>null</code>). 
     * 
     * @since 1.0.13. 
     */ 
    public NumberFormat getExponentFormat() {
        return (NumberFormat) this.formatter.clone();
    } 
 
    /** 
     * Sets the number format used for the exponent. 
     * 
     * @param format  the formatter (<code>null</code> not permitted). 
     * 
     * @since 1.0.13 
     */ 
    public void setExponentFormat(NumberFormat format) {
        if (format == null) {
            throw new IllegalArgumentException("Null 'format' argument.");
        } 
        this.formatter = format;