org.gjt.rec.util
Class ClassComparator
java.lang.Object
|
+--org.gjt.rec.util.ClassComparator
- All Implemented Interfaces:
- Comparator
- public final class ClassComparator
- extends Object
- implements Comparator
Comparator that compares classes using their names.
This class is a Singleton.
- Author:
- Neil Stockbridge
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
onlyInstance
public static ClassComparator onlyInstance()
- Returns:
- The only instance of this class allowed in the VM.
compare
public int compare(Object firstObject,
Object secondObject)
- Specified by:
compare
in interface Comparator