public class AlphanumComparator extends Object implements Comparator<String>
Modifier and Type | Field and Description |
---|---|
private static AlphanumComparator |
INSTANCE |
Modifier | Constructor and Description |
---|---|
private |
AlphanumComparator()
Constructs a new Alphanum Comparator.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(String s1,
String s2) |
private String |
getChunk(String s,
int slength,
int marker)
Length of string is passed in for improved efficiency (only need to
calculate it once) *
|
static AlphanumComparator |
getInstance()
Replies the unique instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
private static final AlphanumComparator INSTANCE
private AlphanumComparator()
public static AlphanumComparator getInstance()
private String getChunk(String s, int slength, int marker)