@Test public void equalityDifferentFormatTest() { FastDecimalFormat fdf = new FastDecimalFormat( FastDecimalFormat.TYPE_PERCENT, Locale.US, true ); assertFalse( fdf.equals( new FastDecimalFormat( FastDecimalFormat.TYPE_PERCENT, Locale.US, false ) ) ); }
public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } final FastDecimalFormat that = (FastDecimalFormat) o; if ( !locale.equals( that.locale ) ) { return false; } if ( !pattern.equals( that.pattern ) ) { return false; } return true; }
FastDecimalFormat implements FastFormat { public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } final FastDecimalFormat that = (FastDecimalFormat) o; if ( !locale.equals( that.locale ) ) { return false; } if ( !pattern.equals( that.pattern ) ) { return false; } return true; } }
FastDecimalFormat implements FastFormat { public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } final FastDecimalFormat that = (FastDecimalFormat) o; if ( !locale.equals( that.locale ) ) { return false; } if ( !pattern.equals( that.pattern ) ) { return false; } return true; } FastDecimalFormat( final String pattern );  FastDecimalFormat( final String pattern, final Locale locale );  FastDecimalFormat( final int type, final Locale locale );  FastDecimalFormat( final int type, final Locale locale, final boolean useFormattingFromResources ); }
FastDecimalFormat implements FastFormat { public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } final FastDecimalFormat that = (FastDecimalFormat) o; if ( !locale.equals( that.locale ) ) { return false; } if ( !pattern.equals( that.pattern ) ) { return false; } return true; } FastDecimalFormat( final String pattern );  FastDecimalFormat( final String pattern, final Locale locale );  FastDecimalFormat( final int type, final Locale locale );  FastDecimalFormat( final int type, final Locale locale, final boolean useFormattingFromResources ); Locale getLocale(); String getPattern(); String format( final Object parameters ); boolean equals( final Object o ); int hashCode(); Object clone(); }
FastDecimalFormat implements FastFormat { public boolean equals( final Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } final FastDecimalFormat that = (FastDecimalFormat) o; if ( !locale.equals( that.locale ) ) { return false; } if ( !pattern.equals( that.pattern ) ) { return false; } return true; } FastDecimalFormat( final String pattern );  FastDecimalFormat( final String pattern, final Locale locale );  FastDecimalFormat( final int type, final Locale locale );  FastDecimalFormat( final int type, final Locale locale, final boolean useFormattingFromResources ); Locale getLocale(); String getPattern(); String format( final Object parameters ); boolean equals( final Object o ); int hashCode(); Object clone(); static final int TYPE_DEFAULT; static final int TYPE_INTEGER; static final int TYPE_CURRENCY; static final int TYPE_PERCENT; }