public final class AlphanumComparator extends Object implements Comparator<String>, Serializable
| Modifier and Type | Field and Description |
|---|---|
private static AlphanumComparator |
INSTANCE |
private static long |
serialVersionUID |
| Modifier | Constructor and Description |
|---|---|
private |
AlphanumComparator()
Constructs a new Alphanum Comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String s1,
String s2) |
private static String |
getChunk(String s,
int slength,
int marker)
Returns an alphanum chunk.
|
static AlphanumComparator |
getInstance()
Replies the unique instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprivate static final long serialVersionUID
private static final AlphanumComparator INSTANCE
private AlphanumComparator()
public static AlphanumComparator getInstance()
private static String getChunk(String s, int slength, int marker)
s - stringslength - string lengthmarker - position