T - The target type for this Specpublic class AndSpec<T> extends CompositeSpec<T>
CompositeSpec which requires all its specs to be true in order to evaluate to true.
Uses lazy evaluation.| Constructor and Description |
|---|
AndSpec() |
AndSpec(Iterable<? extends Spec<? super T>> specs) |
AndSpec(Spec<? super T>... specs) |
| Modifier and Type | Method and Description |
|---|---|
AndSpec<T> |
and(Closure spec) |
AndSpec<T> |
and(Spec<? super T>... specs) |
AndSpec<T> |
and(Spec<? super T> spec)
Typed and() method for a single
Spec. |
static <T> AndSpec<T> |
empty() |
int |
hashCode() |
boolean |
isSatisfiedBy(T object) |
equals, getSpecs, isEmptypublic static final AndSpec<?> EMPTY