org.hamcrest.core
public class AllOf<T> extends org.hamcrest.BaseMatcher<T>
false.| Constructor and Description |
|---|
AllOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers) |
| Modifier and Type | Method and Description |
|---|---|
static <T> org.hamcrest.Matcher<T> |
allOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true.
|
static <T> org.hamcrest.Matcher<T> |
allOf(org.hamcrest.Matcher<? extends T>... matchers)
Evaluates to true only if ALL of the passed in matchers evaluate to true.
|
void |
describeTo(org.hamcrest.Description description)
Generates a description of the object.
|
boolean |
matches(java.lang.Object o)
Evaluates the matcher for argument item.
|
public AllOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers)
public boolean matches(java.lang.Object o)
org.hamcrest.Matchero - the object against which the matcher is evaluated.true if item matches, otherwise false.BaseMatcherpublic void describeTo(org.hamcrest.Description description)
org.hamcrest.SelfDescribingdescription - The description to be built or appended to.public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? extends T>... matchers)
public static <T> org.hamcrest.Matcher<T> allOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers)