goldman
Class Objects.DefaultEquivalenceTester<E>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Objects.DefaultEquivalenceTester
public Objects.DefaultEquivalenceTester()
compare
public int compare(E o1,
E o2)
- Specified by:
compare
in interface Comparator<E>