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) |
static <T> AndSpec<T> |
empty() |
int |
hashCode() |
boolean |
isSatisfiedBy(T object) |
equals, getSpecs, isEmpty
public static final AndSpec<?> EMPTY