/** * Compares this collator with the specified object and indicates if they * are equal. * * @param object * the object to compare with this object. * @return {@code true} if {@code object} is a {@code Collator} object and * it has the same strength and decomposition values as this * collator; {@code false} otherwise. * @see #hashCode */ @Override public boolean equals(Object object) { if (!(object instanceof Collator)) { return false; } Collator collator = (Collator) object; return icuColl == null ? collator.icuColl == null : icuColl.equals(collator.icuColl); }
/** * Compares this collator with the specified object and indicates if they * are equal. * * @param object * the object to compare with this object. * @return {@code true} if {@code object} is a {@code Collator} object and * it has the same strength and decomposition values as this * collator; {@code false} otherwise. * @see #hashCode */ @Override public boolean equals(Object object) { if (!(object instanceof Collator)) { return false; } Collator collator = (Collator) object; return icuColl == null ? collator.icuColl == null : icuColl.equals(collator.icuColl); }
/** * Compares this collator with the specified object and indicates if they * are equal. * * @param object * the object to compare with this object. * @return {@code true} if {@code object} is a {@code Collator} object and * it has the same strength and decomposition values as this * collator; {@code false} otherwise. * @see #hashCode */ @Override public boolean equals(Object object) { if (!(object instanceof Collator)) { return false; } Collator collator = (Collator) object; return icuColl == null ? collator.icuColl == null : icuColl.equals(collator.icuColl); }
/** * Compares this collator with the specified object and indicates if they * are equal. * * @param object * the object to compare with this object. * @return {@code true} if {@code object} is a {@code Collator} object and * it has the same strength and decomposition values as this * collator; {@code false} otherwise. * @see #hashCode */ @Override public boolean equals(Object object) { if (!(object instanceof Collator)) { return false; } Collator collator = (Collator) object; return icuColl == null ? collator.icuColl == null : icuColl.equals(collator.icuColl); }
/** * Compares this collator with the specified object and indicates if they * are equal. * * @param object * the object to compare with this object. * @return {@code true} if {@code object} is a {@code Collator} object and * it has the same strength and decomposition values as this * collator; {@code false} otherwise. * @see #hashCode */ @Override public boolean equals(Object object) { if (!(object instanceof Collator)) { return false; } Collator collator = (Collator) object; return icuColl == null ? collator.icuColl == null : icuColl.equals(collator.icuColl); }
/** * Compares this collator with the specified object and indicates if they * are equal. * * @param object * the object to compare with this object. * @return {@code true} if {@code object} is a {@code Collator} object and * it has the same strength and decomposition values as this * collator; {@code false} otherwise. * @see #hashCode */ @Override public boolean equals(Object object) { if (!(object instanceof Collator)) { return false; } Collator collator = (Collator) object; return icuColl == null ? collator.icuColl == null : icuColl.equals(collator.icuColl); }
/** * Compares this collator with the specified object and indicates if they * are equal. * * @param object * the object to compare with this object. * @return {@code true} if {@code object} is a {@code Collator} object and * it has the same strength and decomposition values as this * collator; {@code false} otherwise. * @see #hashCode */ @Override public boolean equals(Object object) { if (!(object instanceof Collator)) { return false; } Collator collator = (Collator) object; return icuColl == null ? collator.icuColl == null : icuColl.equals(collator.icuColl); }