T - the type of object this condition accepts.Descriptable<T>public class AnyOf<T> extends Join<T>
true if any of the joined conditions is satisfied.| Modifier and Type | Method | Description |
|---|---|---|
static <T> Condition<T> |
anyOf(Iterable<? extends Condition<? super T>> conditions) |
Creates a new
|
static <T> Condition<T> |
anyOf(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, descriptionconditions@SafeVarargs public static <T> Condition<T> anyOf(Condition<? super T>... conditions)
AnyOfT - 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> anyOf(Iterable<? extends Condition<? super T>> conditions)
AnyOfT - 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.