org.gradle.api.specs
Class Specs

java.lang.Object
  extended by org.gradle.api.specs.Specs

public class Specs
extends Object

Provides a number of Spec implementations.


Field Summary
static Spec SATISFIES_ALL
           
 
Constructor Summary
Specs()
           
 
Method Summary
static
<T> AndSpec<T>
and(Spec<? super T>... specs)
           
static
<T> Spec<T>
convertClosureToSpec(Closure cl)
           
static
<T> Set<T>
filterIterable(Iterable<? extends T> iterable, Spec<? super T> spec)
           
static
<T> NotSpec<T>
not(Spec<? super T> spec)
           
static
<T> Spec<T>
or(boolean defaultWhenNoSpecs, List<? extends Spec<? super T>> specs)
           
static
<T> OrSpec<T>
or(Spec<? super T>... specs)
           
static
<T> Spec<T>
satisfyAll()
           
static
<T> Spec<T>
satisfyNone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SATISFIES_ALL

public static final Spec SATISFIES_ALL
Constructor Detail

Specs

public Specs()
Method Detail

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)