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.
source | the string to be transformed into a collation key. |
java.text.CollationKey, java.text.Collator.compare
Diagram: Collator