|
||||||||||
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<T[]>
org.hamcrest.collection.IsArray<T>
public class IsArray<T>
Constructor Summary | |
---|---|
IsArray(Matcher<T>[] elementMatchers)
|
Method Summary | ||
---|---|---|
static
|
array(Matcher<T>... elementMatchers)
|
|
void |
describeTo(Description description)
Generates a description of the object. |
|
protected java.lang.String |
descriptionEnd()
Returns the string that ends the description. |
|
protected java.lang.String |
descriptionSeparator()
Returns the string that separates the elements in the description. |
|
protected java.lang.String |
descriptionStart()
Returns the string that starts the description. |
|
boolean |
matchesSafely(T[] array)
Subclasses should implement this. |
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 IsArray(Matcher<T>[] elementMatchers)
Method Detail |
---|
public boolean matchesSafely(T[] array)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<T[]>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.protected java.lang.String descriptionStart()
protected java.lang.String descriptionSeparator()
protected java.lang.String descriptionEnd()
public static <T> IsArray<T> array(Matcher<T>... elementMatchers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |