Package org.gradle.api.specs
Class AndSpec<T>
- java.lang.Object
-
- org.gradle.api.specs.CompositeSpec<T>
-
- org.gradle.api.specs.AndSpec<T>
-
- Type Parameters:
T
- The target type for this Spec
- All Implemented Interfaces:
Spec<T>
public class AndSpec<T> extends CompositeSpec<T>
ACompositeSpec
which requires all its specs to be true in order to evaluate to true. Uses lazy evaluation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AndSpec<T>
and(Closure spec)
AndSpec<T>
and(Spec<? super T> spec)
Typed and() method for a singleSpec
.AndSpec<T>
and(Spec<? super T>... specs)
static <T> AndSpec<T>
empty()
int
hashCode()
boolean
isSatisfiedBy(T object)
-
Methods inherited from class org.gradle.api.specs.CompositeSpec
equals, getSpecs, isEmpty
-
-
-
-
Field Detail
-
EMPTY
public static final AndSpec<?> EMPTY
-
-