|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<java.lang.Class<?>>
org.hamcrest.object.IsCompatibleType<T>
public class IsCompatibleType<T>
Constructor Summary | |
---|---|
IsCompatibleType(java.lang.Class<T> type)
|
Method Summary | ||
---|---|---|
void |
describeTo(Description description)
Generates a description of the object. |
|
boolean |
matchesSafely(java.lang.Class<?> cls)
Subclasses should implement this. |
|
static
|
typeCompatibleWith(java.lang.Class<T> baseType)
|
Methods inherited from class org.hamcrest.TypeSafeMatcher |
---|
matches |
Methods inherited from class org.hamcrest.BaseMatcher |
---|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IsCompatibleType(java.lang.Class<T> type)
Method Detail |
---|
public boolean matchesSafely(java.lang.Class<?> cls)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<java.lang.Class<?>>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static <T> Matcher<java.lang.Class<?>> typeCompatibleWith(java.lang.Class<T> baseType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |