protected static class TextCollatorRegistryJRE.TextCollatorJRE extends Object implements TextCollator
TextCollator.Strength
Modifier | Constructor and Description |
---|---|
protected |
TextCollatorJRE(Collator collator) |
Modifier and Type | Method and Description |
---|---|
int |
compare(String str1,
String str2)
Compare the two strings according to the this collator's collation rules.
|
ByteString |
getKey(String str)
Get a representation of a string suitable for storing in an index for this collation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(@Nonnull String str1, @Nonnull String str2)
TextCollator
compare
in interface TextCollator
compare
in interface Comparator<String>
str1
- the first stringstr2
- the second string@Nonnull public ByteString getKey(@Nonnull String str)
TextCollator
getKey
in interface TextCollator
str
- the string to index