/** * {@inheritDoc} * @stable ICU 3.8 */ @Override public boolean equals(Object rhs) { return rhs instanceof PluralRules && equals((PluralRules)rhs); }
/** * Override equals * * @stable ICU 4.2 */ public boolean equals(Object a) { if (a instanceof CurrencyPluralInfo) { CurrencyPluralInfo other = (CurrencyPluralInfo)a; return pluralRules.equals(other.pluralRules) && pluralCountToCurrencyUnitPattern.equals(other.pluralCountToCurrencyUnitPattern); } return false; }
/** * {@inheritDoc} * @stable ICU 49 */ @Override public boolean equals(Object obj) { if (obj == null) return false; if (!super.equals(obj)) return false; // super does class check CompactDecimalFormat other = (CompactDecimalFormat) obj; return mapsAreEqual(units, other.units) && Arrays.equals(divisor, other.divisor) && (pluralToCurrencyAffixes == other.pluralToCurrencyAffixes || pluralToCurrencyAffixes != null && pluralToCurrencyAffixes.equals(other.pluralToCurrencyAffixes)) && pluralRules.equals(other.pluralRules); }