Class Specs
java.lang.Object
org.gradle.api.specs.Specs
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe shared spec that is satisfied by every object.The shared spec that is satisfied by no object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Spec<T> convertClosureToSpec(Closure<?> closure) Returns a spec satisfied by objects for which the closure returns a Groovy-true value.static <T> Spec<T> intersect(Collection<? extends Spec<? super T>> specs) Returns a spec that selects the intersection of those items selected by the given specs.static <T> Spec<T> Returns a spec that selects the intersection of those items selected by the given specs.static <T> Spec<T> Returns a spec that selects everything that is not selected by the given spec.static <T> Spec<T> Returns the shared spec that is satisfied by every object.static <T> Spec<T> Returns the shared spec that is satisfied by no object.static <T> Spec<T> union(Collection<? extends Spec<? super T>> specs) Returns a spec that selects the union of those items selected by the given specs.static <T> Spec<T> Returns a spec that selects the union of those items selected by the given specs.
-
Field Details
-
SATISFIES_ALL
-
SATISFIES_NONE
-
-
Constructor Details
-
Specs
public Specs()
-
-
Method Details
-
satisfyAll
Returns the shared spec that is satisfied by every object.- Since:
- 0.7
-
satisfyNone
Returns the shared spec that is satisfied by no object.- Since:
- 0.7
-
convertClosureToSpec
-
intersect
Returns a spec that selects the intersection of those items selected by the given specs. Returns a spec that selects everything when no specs provided.- Since:
- 2.11
-
intersect
Returns a spec that selects the intersection of those items selected by the given specs. Returns a spec that selects everything when no specs provided.- Since:
- 2.11
-
union
Returns a spec that selects the union of those items selected by the given specs. Selects everything when no specs provided.- Since:
- 2.11
-
union
Returns a spec that selects the union of those items selected by the given specs. Selects everything when no specs provided.- Since:
- 2.11
-
negate
-