public static class StringComparators.LexicographicComparator extends StringComparator
String.
Note that this is not equivalent to comparing UTF-8 byte arrays; see javadocs for
StringUtils.compareUnicode(String, String) and
StringUtils.compareUtf8UsingJavaStringOrdering(byte[], byte[]).| Constructor and Description |
|---|
LexicographicComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String s,
String s2) |
boolean |
equals(Object o) |
byte[] |
getCacheKey() |
int |
hashCode() |
String |
toString() |
fromStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic boolean equals(Object o)
equals in interface Comparator<String>equals in class Objectpublic byte[] getCacheKey()
getCacheKey in class StringComparatorCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.