Class CharsetCollator
java.lang.Object
java.text.Collator
org.h2.value.CharsetCollator
- All Implemented Interfaces:
Cloneable, Comparator<Object>
The charset collator sorts strings according to the order in the given charset.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Charset(package private) static final Comparator<byte[]> The comparator used to compare byte arrays.Fields inherited from class Collator
CANONICAL_DECOMPOSITION, FULL_DECOMPOSITION, IDENTICAL, NO_DECOMPOSITION, PRIMARY, SECONDARY, TERTIARY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCollationKey(String source) inthashCode()(package private) byte[]Convert the source to bytes, using the character set.Methods inherited from class Collator
clone, compare, equals, equals, getAvailableLocales, getDecomposition, getInstance, getInstance, getStrength, setDecomposition, setStrengthMethods inherited from class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
COMPARATOR
The comparator used to compare byte arrays. -
charset
-
-
Constructor Details
-
CharsetCollator
-
-
Method Details
-
getCharset
-
compare
-
toBytes
Convert the source to bytes, using the character set.- Parameters:
source- the source- Returns:
- the bytes
-
getCollationKey
- Specified by:
getCollationKeyin classCollator
-
hashCode
-