@Override public boolean equals(Object obj) { if (obj instanceof CollationKeyICU) { return ((CollationKeyICU)obj).fIcuCollKey.equals(fIcuCollKey); } return false; }
/** * <p>Compare this CollationKey and the specified Object for * equality. The collation rules of the Collator that created * this key are applied.</p> * * <p>See note in compareTo(CollationKey) for warnings about * possible incorrect results.</p> * * @param target the object to compare to. * @return true if the two keys compare as equal, false otherwise. * @see #compareTo(CollationKey) * @exception ClassCastException is thrown when the argument is not * a CollationKey. NullPointerException is thrown when the argument * is null. * @stable ICU 2.8 */ public boolean equals(Object target) { if (!(target instanceof CollationKey)) { return false; } return equals((CollationKey)target); }
/** * <p>Compare this CollationKey and the specified Object for * equality. The collation rules of the Collator that created * this key are applied.</p> * * <p>See note in compareTo(CollationKey) for warnings about * possible incorrect results.</p> * * @param target the object to compare to. * @return true if the two keys compare as equal, false otherwise. * @see #compareTo(CollationKey) * @exception ClassCastException is thrown when the argument is not * a CollationKey. NullPointerException is thrown when the argument * is null. * @stable ICU 2.8 */ public boolean equals(Object target) { if (!(target instanceof CollationKey)) { return false; } return equals((CollationKey)target); }
/** * Compare this CollationKey and the specified Object for * equality. The collation rules of the Collator that created * this key are applied. * * <p>See note in compareTo(CollationKey) for warnings about * possible incorrect results. * * @param target the object to compare to. * @return true if the two keys compare as equal, false otherwise. * @see #compareTo(CollationKey) * @exception ClassCastException is thrown when the argument is not * a CollationKey. NullPointerException is thrown when the argument * is null. * @stable ICU 2.8 */ @Override public boolean equals(Object target) { if (!(target instanceof CollationKey)) { return false; } return equals((CollationKey)target); }