T - the type of object this condition accepts.public class AllOf<T> extends Join<T>
true if all of the joined conditions is satisfied.| Modifier and Type | Method and Description |
|---|---|
static <T> Condition<T> |
allOf(Condition<? super T>... conditions)
Creates a new
|
static <T> Condition<T> |
allOf(Iterable<? extends Condition<? super T>> conditions)
Creates a new
|
boolean |
matches(T value)
Verifies that the given value satisfies this condition.
|
String |
toString() |
conditionsas, as, describedAs, describedAs, description@SafeVarargs public static <T> Condition<T> allOf(Condition<? super T>... conditions)
AllOfT - 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> allOf(Iterable<? extends Condition<? super T>> conditions)
AllOfT - 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)
Copyright © 2014–2019 AssertJ. All rights reserved.