T
- The desired type of the Matcher.S
- the subtype of T that your matcher applies safely to.public abstract class BoundedMatcher<T,S extends T> extends
Constructor and Description |
---|
BoundedMatcher(java.lang.Class<?> expectedType,
java.lang.Class<?> interfaceType1,
java.lang.Class<?>... otherInterfaces) |
BoundedMatcher(java.lang.Class<? extends S> expectedType) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.Object item) |
protected abstract boolean |
matchesSafely(S item) |
public BoundedMatcher(java.lang.Class<? extends S> expectedType)
public BoundedMatcher(java.lang.Class<?> expectedType, java.lang.Class<?> interfaceType1, java.lang.Class<?>... otherInterfaces)
protected abstract boolean matchesSafely(S item)
public final boolean matches(java.lang.Object item)