TypeSafeMatcher
.@Deprecated
public abstract class TypeSafeMatcher<T>
extends org.hamcrest.BaseMatcher<T>
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
expectedType
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
TypeSafeMatcher()
Deprecated.
|
protected |
TypeSafeMatcher(java.lang.Class<T> expectedType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.Class<?> |
findExpectedType(java.lang.Class<?> fromClass)
Deprecated.
|
private static boolean |
isMatchesSafelyMethod(java.lang.reflect.Method method)
Deprecated.
|
boolean |
matches(java.lang.Object item)
Deprecated.
Method made final to prevent accidental override.
|
abstract boolean |
matchesSafely(T item)
Deprecated.
Subclasses should implement this.
|
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toString
protected TypeSafeMatcher()
protected TypeSafeMatcher(java.lang.Class<T> expectedType)
public abstract boolean matchesSafely(T item)
private static java.lang.Class<?> findExpectedType(java.lang.Class<?> fromClass)
private static boolean isMatchesSafelyMethod(java.lang.reflect.Method method)
public final boolean matches(java.lang.Object item)
BaseMatcher
.