Code example for NumberFormat

Methods: clone

0
     * Create an improper formatting instance with a custom number format for 
     * both the numerator and denominator. 
     * @param format the custom format for both the numerator and denominator. 
     */ 
    protected AbstractFormat(final NumberFormat format) {
        this(format, (NumberFormat) format.clone());
    } 
 
    /** 
     * Create an improper formatting instance with a custom number format for 
     * the numerator and a custom number format for the denominator. 
     * @param numeratorFormat the custom format for the numerator. 
     * @param denominatorFormat the custom format for the denominator. 
     */ 
    protected AbstractFormat(final NumberFormat numeratorFormat,
                             final NumberFormat denominatorFormat) {
        this.numeratorFormat   = numeratorFormat;
        this.denominatorFormat = denominatorFormat;
    } 
 
    /**