public class AnyOf<T>
extends org.hamcrest.BaseMatcher<T>
true
.Constructor and Description |
---|
AnyOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers) |
Modifier and Type | Method and Description |
---|---|
static <T> org.hamcrest.Matcher<T> |
anyOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> org.hamcrest.Matcher<T> |
anyOf(org.hamcrest.Matcher<? extends T>... matchers)
Evaluates to true if ANY 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 AnyOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers)
public boolean matches(java.lang.Object o)
org.hamcrest.Matcher
o
- the object against which the matcher is evaluated.true
if item matches, otherwise false
.BaseMatcher
public void describeTo(org.hamcrest.Description description)
org.hamcrest.SelfDescribing
description
- The description to be built or appended to.public static <T> org.hamcrest.Matcher<T> anyOf(org.hamcrest.Matcher<? extends T>... matchers)
public static <T> org.hamcrest.Matcher<T> anyOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers)