CharsetCollator
The charset collator sorts strings according to the order in the given charset.
| Methods |
| int |
compare(String source, String target)
|
| int |
compare(String source, String target)
|
| Charset |
getCharset()
|
| Charset |
getCharset()
|
| CollationKey |
getCollationKey(String source)
|
| CollationKey |
getCollationKey(String source)
|
| int |
hashCode()
|
| int |
hashCode()
|
| byte[] |
toBytes(String source)
Convert the source to bytes, using the character set.
|
| byte[] |
toBytes(String source)
Convert the source to bytes, using the character set.
Parameters:
source - the source
Returns:
the bytes
|
COMPARATOR
The comparator used to compare byte arrays.