T - The target type for this SpecSpec<T>public class OrSpec<T> extends CompositeSpec<T>
CompositeSpec which requires any one of its specs to be true in order to evaluate to
true. Uses lazy evaluation.| Constructor | Description |
|---|---|
OrSpec() |
|
OrSpec(java.lang.Iterable<? extends Spec<? super T>> specs) |
|
OrSpec(Spec<? super T>... specs) |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> OrSpec<T> |
empty() |
|
boolean |
isSatisfiedBy(T object) |
|
OrSpec<T> |
or(Spec<? super T>... specs) |
equals, getSpecs, hashCode, isEmptypublic static final OrSpec<?> EMPTY