|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gshute.util.Comparators
Class Comparators is a factory class that provides comparators for comparing Byte, Double, Float, Integer, Long, Short, and String objects. All comparators returned by this class are singletons.
Field Summary | |
protected static java.lang.String |
BYTE
|
protected static java.lang.String |
BYTE_REVERSED
|
protected static java.util.Hashtable |
comparators
|
protected static java.lang.String |
DOUBLE
|
protected static java.lang.String |
DOUBLE_REVERSED
|
protected static java.lang.String |
FLOAT
|
protected static java.lang.String |
FLOAT_REVERSED
|
protected static java.lang.String |
INTEGER
|
protected static java.lang.String |
INTEGER_REVERSED
|
protected static java.lang.String |
LONG
|
protected static java.lang.String |
LONG_REVERSED
|
protected static java.lang.String |
SHORT
|
protected static java.lang.String |
SHORT_REVERSED
|
protected static java.lang.String |
STRING
|
protected static java.lang.String |
STRING_REVERSED
|
Constructor Summary | |
Comparators()
|
Method Summary | |
static java.util.Comparator |
forByte()
Comparators.forByte() returns a comparator for the Byte class. |
static java.util.Comparator |
forByteReversed()
Comparators.forByteReversed() returns a reverse order comparator for the Byte class. |
static java.util.Comparator |
forDouble()
Comparators.forDouble() returns a comparator for the Double class. |
static java.util.Comparator |
forDoubleReversed()
Comparators.forDoubleReversed() returns a reverse order comparator for the Double class. |
static java.util.Comparator |
forFloat()
Comparators.forFloat() returns a comparator for the Float class. |
static java.util.Comparator |
forFloatReversed()
Comparators.forFloatReversed() returns a reverse order comparator for the Float class. |
static java.util.Comparator |
forInteger()
Comparators.forInteger() returns a comparator for the Integer class. |
static java.util.Comparator |
forIntegerReversed()
Comparators.forIntegerReversed() returns a reverse order comparator for the Integer class. |
static java.util.Comparator |
forLong()
Comparators.forLong() returns a comparator for the Long class. |
static java.util.Comparator |
forLongReversed()
Comparators.forLongReversed() returns a reverse order comparator for the Long class. |
static java.util.Comparator |
forShort()
Comparators.forShort() returns a comparator for the Short class. |
static java.util.Comparator |
forShortReversed()
Comparators.forShortReversed() returns a reverse order comparator for the Short class. |
static java.util.Comparator |
forString()
Comparators.forString() returns a comparator for the String class. |
static java.util.Comparator |
forStringReversed()
Comparators.forStringReversed() returns a reverse order comparator for the String class. |
static java.util.Comparator |
resolved(java.util.Comparator c1,
java.util.Comparator c2)
Comparators.resolved(c1, c2) returns a comparator whose compare() method returns the same result as c1.compare() except that ties are resolved by c2.compare(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Hashtable comparators
protected static final java.lang.String BYTE
protected static final java.lang.String BYTE_REVERSED
protected static final java.lang.String DOUBLE
protected static final java.lang.String DOUBLE_REVERSED
protected static final java.lang.String FLOAT
protected static final java.lang.String FLOAT_REVERSED
protected static final java.lang.String INTEGER
protected static final java.lang.String INTEGER_REVERSED
protected static final java.lang.String LONG
protected static final java.lang.String LONG_REVERSED
protected static final java.lang.String SHORT
protected static final java.lang.String SHORT_REVERSED
protected static final java.lang.String STRING
protected static final java.lang.String STRING_REVERSED
Constructor Detail |
public Comparators()
Method Detail |
public static java.util.Comparator forByte()
public static java.util.Comparator forByteReversed()
public static java.util.Comparator forDouble()
public static java.util.Comparator forDoubleReversed()
public static java.util.Comparator forFloat()
public static java.util.Comparator forFloatReversed()
public static java.util.Comparator forInteger()
public static java.util.Comparator forIntegerReversed()
public static java.util.Comparator forLong()
public static java.util.Comparator forLongReversed()
public static java.util.Comparator forShort()
public static java.util.Comparator forShortReversed()
public static java.util.Comparator forString()
public static java.util.Comparator forStringReversed()
public static java.util.Comparator resolved(java.util.Comparator c1, java.util.Comparator c2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |