org.gjt.rec.util
Class ToStringComparator
java.lang.Object
  |
  +--org.gjt.rec.util.ToStringComparator
- All Implemented Interfaces: 
- Comparator
- public final class ToStringComparator- extends Object- implements Comparator
Comparator that uses the toString() methods of objects to compare them.
 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 ToStringComparator onlyInstance()
- 
 
- 
- Returns:
- The only instance of this class allowed in the VM.
 
compare
public int compare(Object o1,
                   Object o2)
- 
- Specified by:
- comparein interface- Comparator
 
-