Modifier and Type | Field and Description |
---|---|
static Spec<Object> |
SATISFIES_ALL |
static Spec<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(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(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 <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(Collection<? extends Spec<? super T>> specs)
public static <T> Spec<T> union(Spec<? super T>... specs)
public static <T> Spec<T> union(Collection<? extends Spec<? super T>> specs)