|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.assertions.core.Condition<T>
org.fest.assertions.condition.Join<T>
org.fest.assertions.condition.AnyOf<T>
T - the type of object this condition accepts.public class AnyOf<T>
Returns true if any of the joined conditions is satisfied.
| Method Summary | ||
|---|---|---|
static
|
anyOf(Condition<? super T>... conditions)
Creates a new |
|
static
|
anyOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new |
|
boolean |
matches(T value)
Verifies that the given value satisfies this condition. |
|
String |
toString()
|
|
| Methods inherited from class org.fest.assertions.condition.Join |
|---|
conditions |
| Methods inherited from class org.fest.assertions.core.Condition |
|---|
as, as, describedAs, describedAs, description |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static <T> Condition<T> anyOf(Condition<? super T>... conditions)
AnyOf
T - the type of object the given condition accept.conditions - the conditions to evaluate.
AnyOf.
NullPointerException - if the given array is null.
NullPointerException - if any of the elements in the given array is null.public static <T> Condition<T> anyOf(Iterable<? extends Condition<? super T>> conditions)
AnyOf
T - the type of object the given condition accept.conditions - the conditions to evaluate.
AnyOf.
NullPointerException - if the given iterable is null.
NullPointerException - if any of the elements in the given iterable is null.public boolean matches(T value)
matches in class Condition<T>value - the value to verify.
true if the given value satisfies this condition; false otherwise.public String toString()
toString in class Condition<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||