Package org.assertj.core.condition
Class AllOf<T>
- java.lang.Object
-
- org.assertj.core.api.Condition<T>
-
- org.assertj.core.condition.Join<T>
-
- org.assertj.core.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>
Returnstrueif all of the joined conditions are satisfied.- Author:
- Yvonne Wang, Mikhail Mazursky
-
-
Field Summary
-
Fields inherited from class org.assertj.core.condition.Join
conditions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Condition<T>allOf(Iterable<? extends Condition<? super T>> conditions)Creates a newAllOfstatic <T> Condition<T>allOf(Condition<? super T>... conditions)Creates a newAllOfbooleanmatches(T value)Verifies that the given value satisfies this condition.StringtoString()-
Methods inherited from class org.assertj.core.condition.Join
conditions
-
Methods inherited from class org.assertj.core.api.Condition
as, as, describedAs, describedAs, description
-
-
-
-
Method Detail
-
allOf
@SafeVarargs 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
AllOf. - Throws:
NullPointerException- if the given array isnull.NullPointerException- if any of the elements in the given array isnull.
-
allOf
public static <T> Condition<T> allOf(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
AllOf. - Throws:
NullPointerException- if the given iterable isnull.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.
-
-