public static class SortLabels.CaseSensitiveComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>, java.io.Serializable
Constructor and Description |
---|
CaseSensitiveComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.String o1,
java.lang.String o2)
compares the two strings, returns -1 if o1 is smaller than o2, 0 if equal
and +1 if greater.
|
public int compare(java.lang.String o1, java.lang.String o2)
compare
in interface java.util.Comparator<java.lang.String>
o1
- the first string to compareo2
- the second string to compare