public class Specs
extends java.lang.Object
Spec
implementations.Modifier and Type | Field and Description |
---|---|
static Spec<java.lang.Object> |
SATISFIES_ALL |
static Spec<java.lang.Object> |
SATISFIES_NONE |
Constructor and Description |
---|
Specs() |
Modifier and Type | Method and 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.
|
public static final Spec<java.lang.Object> SATISFIES_ALL
public static final Spec<java.lang.Object> SATISFIES_NONE
public static <T> Spec<T> satisfyAll()
public static <T> Spec<T> satisfyNone()
public static <T> Spec<T> intersect(Spec<? super T>... specs)
public static <T> Spec<T> intersect(java.util.Collection<? extends Spec<? super T>> specs)
public static <T> Spec<T> union(Spec<? super T>... specs)
public static <T> Spec<T> union(java.util.Collection<? extends Spec<? super T>> specs)