| java.lang.Object java.text.CollationKey
CollationKey | final public class CollationKey implements Comparable<CollationKey>(Code) | | CollationKey represents the collation order of a particular String for a
specific Collator. CollationKeys can be compared to determine the relative
ordering of their source Strings. This is useful when the Strings must be
compared multiple times, as in sorting.
|
Method Summary | |
public int | compareTo(CollationKey value) Compare the receiver to the specified CollationKey to determine the
relative ordering. | public boolean | equals(Object object) Compares the specified object to this CollationKey and answer if they are
equal. | public String | getSourceString() Answer the String from which this CollationKey was created. | public int | hashCode() Answers an integer hash code for the receiver. | public byte[] | toByteArray() Answer the collation key as a byte array. |
CollationKey | CollationKey(String source, com.ibm.icu.text.CollationKey key)(Code) | | |
compareTo | public int compareTo(CollationKey value)(Code) | | Compare the receiver to the specified CollationKey to determine the
relative ordering.
Parameters: value - a CollationKey an int < 0 if this CollationKey is less than the specifiedCollationKey, 0 if they are equal, and > 0 if this CollationKeyis greater |
equals | public boolean equals(Object object)(Code) | | Compares the specified object to this CollationKey and answer if they are
equal. The object must be an instance of CollationKey and have the same
source string and collation key. The instances of CollationKey must have
been created by the same Collator.
Parameters: object - the object to compare with this object true if the specified object is equal to this CollationKey, falseotherwise See Also: CollationKey.hashCode |
getSourceString | public String getSourceString()(Code) | | Answer the String from which this CollationKey was created.
a String |
hashCode | public int hashCode()(Code) | | Answers an integer hash code for the receiver. Objects which are equal
answer the same value for this method.
the receiver's hash See Also: CollationKey.equals |
toByteArray | public byte[] toByteArray()(Code) | | Answer the collation key as a byte array.
an array of bytes |
|
|