public class AnyOf<T> extends BaseMatcher<T>
true.| Constructor and Description |
|---|
AnyOf(Iterable<Matcher<? super T>> matchers) |
| Modifier and Type | Method and Description |
|---|---|
static <T> AnyOf<T> |
anyOf(Iterable<Matcher<? super T>> matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> AnyOf<T> |
anyOf(Matcher<? super T>... matchers)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> AnyOf<T> |
anyOf(Matcher<T> first,
Matcher<? super T> second)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> AnyOf<T> |
anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> AnyOf<T> |
anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> AnyOf<T> |
anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
static <T> AnyOf<T> |
anyOf(Matcher<T> first,
Matcher<? super T> second,
Matcher<? super T> third,
Matcher<? super T> fourth,
Matcher<? super T> fifth,
Matcher<? super T> sixth)
Evaluates to true if ANY of the passed in matchers evaluate to true.
|
void |
describeTo(Description description)
Generates a description of the object.
|
void |
describeTo(Description description,
String operator) |
boolean |
matches(Object o)
Evaluates the matcher for argument item.
|
protected boolean |
matches(Object o,
boolean shortcut) |
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toStringpublic boolean matches(Object o)
Matchermatches in interface Matcher<T>o - the object against which the matcher is evaluated.true if item matches, otherwise false.BaseMatcherpublic void describeTo(Description description)
SelfDescribingdescribeTo in interface SelfDescribingdescription - The description to be built or appended to.public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers)
public static <T> AnyOf<T> anyOf(Matcher<? super T>... matchers)
public static <T> AnyOf<T> anyOf(Matcher<T> first, Matcher<? super T> second)
public static <T> AnyOf<T> anyOf(Matcher<T> first, Matcher<? super T> second, Matcher<? super T> third)
public static <T> AnyOf<T> anyOf(Matcher<T> first, Matcher<? super T> second, Matcher<? super T> third, Matcher<? super T> fourth)
public static <T> AnyOf<T> anyOf(Matcher<T> first, Matcher<? super T> second, Matcher<? super T> third, Matcher<? super T> fourth, Matcher<? super T> fifth)
public static <T> AnyOf<T> anyOf(Matcher<T> first, Matcher<? super T> second, Matcher<? super T> third, Matcher<? super T> fourth, Matcher<? super T> fifth, Matcher<? super T> sixth)
protected boolean matches(Object o, boolean shortcut)
public void describeTo(Description description, String operator)
Copyright © 2016. All rights reserved.