public class StringComparator extends Object implements Comparator<String>
Modifier and Type | Field and Description |
---|---|
static StringComparator |
INSTANCE
A static instance of a StringComparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(String string1,
String string2)
Compare two Strings.
|
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 static final StringComparator INSTANCE
public int compare(String string1, String string2)
compare
in interface Comparator<String>
string1
- First Stringstring2
- Second StringCopyright © 2012–2023 Apache Mavibot Project Parent. All rights reserved.