Package org.fest.assertions.condition
Class AnyOf<T>
- java.lang.Object
 - 
- org.fest.assertions.core.Condition<T>
 - 
- org.fest.assertions.condition.Join<T>
 - 
- org.fest.assertions.condition.AnyOf<T>
 
 
 
 
- 
- Type Parameters:
 T- the type of object this condition accepts.
- All Implemented Interfaces:
 Descriptable<Condition<T>>
public class AnyOf<T> extends Join<T>
Returnstrueif any of the joined conditions is satisfied.- Author:
 - Yvonne Wang, Mikhail Mazursky
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Condition<T>anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)Creates a newAnyOfstatic <T> Condition<T>anyOf(Condition<? super T>... conditions)Creates a newAnyOfbooleanmatches(T value)Verifies that the given value satisfies this condition.java.lang.StringtoString()- 
Methods inherited from class org.fest.assertions.condition.Join
conditions 
- 
Methods inherited from class org.fest.assertions.core.Condition
as, as, describedAs, describedAs, description 
 - 
 
 - 
 
- 
- 
Method Detail
- 
anyOf
public static <T> Condition<T> anyOf(Condition<? super T>... conditions)
Creates a newAnyOf- Type Parameters:
 T- the type of object the given condition accept.- Parameters:
 conditions- the conditions to evaluate.- Returns:
 - the created 
AnyOf. - Throws:
 java.lang.NullPointerException- if the given array isnull.java.lang.NullPointerException- if any of the elements in the given array isnull.
 
- 
anyOf
public static <T> Condition<T> anyOf(java.lang.Iterable<? extends Condition<? super T>> conditions)
Creates a newAnyOf- Type Parameters:
 T- the type of object the given condition accept.- Parameters:
 conditions- the conditions to evaluate.- Returns:
 - the created 
AnyOf. - Throws:
 java.lang.NullPointerException- if the given iterable isnull.java.lang.NullPointerException- if any of the elements in the given iterable isnull.
 
- 
matches
public boolean matches(T value)
Verifies that the given value satisfies this condition. 
 - 
 
 -