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