org.hamcrest.collection
public class IsArray<T> extends TypeSafeMatcher<T[]>
| Modifier and Type | Method and Description |
|---|---|
static <T> IsArray<T> |
array(Matcher<T>... elementMatchers) |
void |
describeTo(Description description)
Generates a description of the object.
|
protected String |
descriptionEnd()
Returns the string that ends the description.
|
protected String |
descriptionSeparator()
Returns the string that separates the elements in the description.
|
protected String |
descriptionStart()
Returns the string that starts the description.
|
boolean |
matchesSafely(T[] array)
Subclasses should implement this.
|
matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matchesSafely(T[] array)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<T[]>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.protected String descriptionStart()
protected String descriptionSeparator()
protected String descriptionEnd()