Package org.gradle.api.specs
Class Specs
- java.lang.Object
-
- org.gradle.api.specs.Specs
-
public class Specs extends java.lang.ObjectProvides a number ofSpecimplementations.
-
-
Field Summary
Fields Modifier and Type Field Description static Spec<java.lang.Object>SATISFIES_ALLstatic Spec<java.lang.Object>SATISFIES_NONE
-
Constructor Summary
Constructors Constructor Description Specs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Spec<T>convertClosureToSpec(Closure<?> closure)static <T> Spec<T>intersect(java.util.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>intersect(Spec<? super T>... specs)Returns a spec that selects the intersection of those items selected by the given specs.static <T> Spec<T>negate(Spec<? super T> spec)Returns a spec that selects everything that is not selected by the given spec.static <T> Spec<T>satisfyAll()static <T> Spec<T>satisfyNone()static <T> Spec<T>union(java.util.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>union(Spec<? super T>... specs)Returns a spec that selects the union of those items selected by the provided spec.
-
-
-
Method Detail
-
satisfyAll
public static <T> Spec<T> satisfyAll()
-
satisfyNone
public static <T> Spec<T> satisfyNone()
-
intersect
@SafeVarargs public static <T> Spec<T> intersect(Spec<? super T>... specs)
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
public static <T> Spec<T> intersect(java.util.Collection<? extends Spec<? super T>> specs)
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
@SafeVarargs public static <T> Spec<T> union(Spec<? super T>... specs)
Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided.
-
union
public static <T> Spec<T> union(java.util.Collection<? extends Spec<? super T>> specs)
Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided.
-
-