public class StringLenComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.String o1,
java.lang.String o2) |
static StringLenComparator |
getDescendingInstance() |
static StringLenComparator |
getInstance() |
public static StringLenComparator getInstance()
public static StringLenComparator getDescendingInstance()
public int compare(java.lang.String o1, java.lang.String o2)
compare
in interface java.util.Comparator<java.lang.String>