public abstract class TypeSafeMatcher<T> extends BaseMatcher<T>
Modifier | Constructor and Description |
---|---|
protected |
TypeSafeMatcher() |
protected |
TypeSafeMatcher(Class<T> expectedType) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Object item)
Method made final to prevent accidental override.
|
abstract boolean |
matchesSafely(T item)
Subclasses should implement this.
|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
describeTo
public abstract boolean matchesSafely(T item)
public final boolean matches(Object item)
BaseMatcher
.item
- the object against which the matcher is evaluated.true
if item matches, otherwise false
.BaseMatcher