/** * <p>Returns a hash code for this CollationKey. The hash value is calculated * on the key itself, not the String from which the key was created. Thus * if x and y are CollationKeys, then x.hashCode(x) == y.hashCode() * if x.equals(y) is true. This allows language-sensitive comparison in a * hash table. * </p> * @return the hash value. * @stable ICU 2.8 */ public int hashCode() { return key.hashCode(); }