goldman
Class Objects.DefaultEquivalenceTester<E>

java.lang.Object
  extended by goldman.Objects.DefaultEquivalenceTester<E>
All Implemented Interfaces:
Comparator<E>
Enclosing class:
Objects

public static class Objects.DefaultEquivalenceTester<E>
extends Object
implements Comparator<E>

If no comparator is provided in the constructor for a data structure that depends on the elements being comparable, the following default equivalence tester is used.


Constructor Summary
Objects.DefaultEquivalenceTester()
           
 
Method Summary
 int compare(E o1, E o2)
           
 
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
 

Constructor Detail

Objects.DefaultEquivalenceTester

public Objects.DefaultEquivalenceTester()
Method Detail

compare

public int compare(E o1,
                   E o2)
Specified by:
compare in interface Comparator<E>