/** * <p> * Compare this CollationKey and the argument target CollationKey for * equality. * The collation * rules of the Collator object which created these objects are applied. * </p> * <p> * See note in compareTo(CollationKey) for warnings of incorrect results * </p> * @param target the CollationKey to compare to. * @return true if two objects are equal, false otherwise. * @exception NullPointerException is thrown when the argument is null. * @stable ICU 2.8 */ public boolean equals(CollationKey target) { return key.equals(target.key); }