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>
A
CompositeSpec which requires all its specs to be true in order to evaluate to true.
Uses lazy evaluation.- Since:
- 0.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnd.Typed and() method for a singleSpec.And.static <T> AndSpec<T> empty()Empty.findUnsatisfiedSpec(T object) Finds the firstSpecthat is not satisfied by the object.booleanisSatisfiedBy(T object) Returns whether satisfied by is set.Methods inherited from class CompositeSpec
equals, getSpecs, getSpecsArray, hashCode, isEmpty, uncheckedCast
-
Field Details
-
EMPTY
-
-
Constructor Details
-
AndSpec
public AndSpec()Creates a newAndSpec.- Since:
- 3.0
-
AndSpec
-
AndSpec
-
-
Method Details
-
isSatisfiedBy
-
findUnsatisfiedSpec
Finds the firstSpecthat is not satisfied by the object.- Parameters:
object- to check specs against- Returns:
- an unsatisfied spec or null
- Since:
- 7.6
-
and
-
and
-
and
-
empty
-