com.ibm.wala.util.collections
Class ToStringComparator<T>

java.lang.Object
  extended by com.ibm.wala.util.collections.ToStringComparator<T>
All Implemented Interfaces:
java.util.Comparator<T>

public class ToStringComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>

A comparator based on lexicographical ordering of toString()


Method Summary
 int compare(T o1, T o2)
           
static
<T> ToStringComparator<T>
instance()
           
 
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
 

Method Detail

compare

public int compare(T o1,
                   T o2)
            throws java.lang.NullPointerException
Specified by:
compare in interface java.util.Comparator<T>
Throws:
java.lang.NullPointerException

instance

public static <T> ToStringComparator<T> instance()