Code example for NumberFormat

Methods: equals

0
        StandardCrosshairLabelGenerator that
                = (StandardCrosshairLabelGenerator) obj;
        if (!this.labelTemplate.equals(that.labelTemplate)) {
            return false; 
        } 
        if (!this.numberFormat.equals(that.numberFormat)) {
            return false; 
        } 
        return true; 
    } 
 
    /** 
     * Returns a hash code for this instance. 
     * 
     * @return A hash code for this instance. 
     */ 
    public int hashCode() { 
        return this.labelTemplate.hashCode();
    } 
 
}