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