Package org.fest.assertions.condition
Class AllOf<T>
- java.lang.Object
-
- org.fest.assertions.core.Condition<T>
-
- org.fest.assertions.condition.Join<T>
-
- org.fest.assertions.condition.AllOf<T>
-
- Type Parameters:
T
- the type of object this condition accepts.
- All Implemented Interfaces:
Descriptable<Condition<T>>
public class AllOf<T> extends Join<T>
Returnstrue
if all 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>
allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)
Creates a newAllOf
static <T> Condition<T>
allOf(Condition<? super T>... conditions)
Creates a newAllOf
boolean
matches(T value)
Verifies that the given value satisfies this condition.java.lang.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
-
-
-
-
Method Detail
-
allOf
public static <T> Condition<T> allOf(Condition<? super T>... conditions)
Creates a newAllOf
- 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
.
-
allOf
public static <T> Condition<T> allOf(java.lang.Iterable<? extends Condition<? super T>> conditions)
Creates a newAllOf
- 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.
-
-