Collator.getCollationKey
Class Overview | Class Members |
This Package |
All Packages
public abstract CollationKey getCollationKey( String source )
Parameters
- source
- the string to be transformed into a collation key.
Returns
the CollationKey for the given String based on this Collator's collation
rules. If the source String is null, a null CollationKey is returned.
Description
Transforms the String into a series of bits that can be compared bitwise
to other CollationKeys. CollationKeys provide better performance than
Collator.compare when Strings are involved in multiple comparisons.
See the Collator class description for an example using CollationKeys.
See Also
CollationKey, compare