|
|||||||||
| 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 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. |
|
| 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 String descriptionStart()
protected String descriptionSeparator()
protected 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 | ||||||||