org.gradle.api.specs
Class Specs
java.lang.Object
org.gradle.api.specs.Specs
public class Specs
- extends Object
Provides a number of Spec
implementations.
Constructor Summary |
Specs()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SATISFIES_ALL
public static final Spec SATISFIES_ALL
Specs
public Specs()
satisfyAll
public static <T> Spec<T> satisfyAll()
satisfyNone
public static <T> Spec<T> satisfyNone()
convertClosureToSpec
public static <T> Spec<T> convertClosureToSpec(Closure cl)
filterIterable
public static <T> Set<T> filterIterable(Iterable<? extends T> iterable,
Spec<? super T> spec)
and
public static <T> AndSpec<T> and(Spec<? super T>... specs)
or
public static <T> OrSpec<T> or(Spec<? super T>... specs)
not
public static <T> NotSpec<T> not(Spec<? super T> spec)
or
public static <T> Spec<T> or(boolean defaultWhenNoSpecs,
List<? extends Spec<? super T>> specs)