@FunctionalInterface public interface UniformMatcher<T> extends Matcher<T,T>
Matcher
which can only compare
objects of the same type.
Besides IDENTICAL
which only accepts the same object as identical,
useful standard implementations are also
Objects::equals
or Objects::deepEquals
.
HashCodeCalculator
Modifier and Type | Field and Description |
---|---|
static UniformMatcher<java.lang.Object> |
IDENTICAL
Uniform matcher which only accepts identical objects.
|
Modifier and Type | Method and Description |
---|---|
default <V> UniformMatcher<V> |
identical()
Identical matcher.
|
static final UniformMatcher<java.lang.Object> IDENTICAL
@NotNull default <V> UniformMatcher<V> identical()
IDENTICAL
but may be used in cases when
the interface does not accept matchers with a super type.V
- value type