public class IsCompatibleType<T> extends TypeSafeMatcher<java.lang.Class<?>>
| Constructor and Description |
|---|
IsCompatibleType(java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matchesSafely(java.lang.Class<?> cls)
Subclasses should implement this.
|
static <T> Matcher<java.lang.Class<?>> |
typeCompatibleWith(java.lang.Class<T> baseType) |
matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic IsCompatibleType(java.lang.Class<T> type)
public boolean matchesSafely(java.lang.Class<?> cls)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<java.lang.Class<?>>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.public static <T> Matcher<java.lang.Class<?>> typeCompatibleWith(java.lang.Class<T> baseType)