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

Field Summary
static String REVISION
           
 
Method Summary
 int compare(Object firstObject, Object secondObject)
           
static ClassComparator onlyInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Method Detail

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