public class ComparatorMatcher<T> extends java.lang.Object implements UniformMatcher<T>
Objects are considered equal if the comparator returns 0
.
How this matcher handles null
values depends on the comparator.
Match.from(java.util.Comparator)
IDENTICAL, NATURAL, NATURAL_NULL_SAFE
Constructor and Description |
---|
ComparatorMatcher(java.util.Comparator<T> comparator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areEqual(T object1,
T object2)
Are the given two objects considered equal?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
identical, natural, naturalNullSafe