Package org.gradle.api.specs
Class Specs
java.lang.Object
org.gradle.api.specs.Specs
Provides a number of
Spec
implementations.-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Spec<T>
convertClosureToSpec
(Closure<?> closure) 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>
static <T> Spec<T>
static <T> Spec<T>
union
(Collection<? extends Spec<? super T>> specs) Returns a spec that selects the union of those items selected by the provided spec.static <T> Spec<T>
Returns a spec that selects the union of those items selected by the provided spec.
-
Field Details
-
SATISFIES_ALL
-
SATISFIES_NONE
-
-
Constructor Details
-
Specs
public Specs()
-
-
Method Details
-
satisfyAll
-
satisfyNone
-
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. -
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. -
union
Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided. -
union
Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided. -
negate
Returns a spec that selects everything that is not selected by the given spec.
-