Provides a number of Spec implementations.
| Modifiers | Name | Description |
|---|---|---|
static Spec<Object> |
SATISFIES_ALL |
|
static Spec<Object> |
SATISFIES_NONE |
| Type | Name and description |
|---|---|
static AndSpec<T> |
and(Spec<? super T>... specs)Returns a spec that selects the intersection of those items selected by the given specs. |
static AndSpec<T> |
and(Collection<? extends Spec<? super T>> specs)Returns a spec that selects the intersection of those items selected by the given specs. |
static Spec<T> |
convertClosureToSpec(groovy.lang.Closure closure) |
static Spec<T> |
intersect(Spec<? super T>... specs)Returns a spec that selects the intersection of those items selected by the given specs. |
static 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 Spec<T> |
negate(Spec<? super T> spec)Returns a spec that selects everything that is not selected by the given spec. |
static NotSpec<T> |
not(Spec<? super T> spec)Returns a spec that selects everything that is not selected by the given spec. |
static OrSpec<T> |
or(Spec<? super T>... specs)Returns a spec that selects the union of those items selected by the provided spec. |
static OrSpec<T> |
or(Collection<? extends Spec<? super T>> specs)Returns a spec that selects the union of those items selected by the provided spec. |
static Spec<T> |
or(boolean defaultWhenNoSpecs, List<? extends Spec<? super T>> specs)Returns a spec that selects the union of those items selected by the provided spec. |
static Spec<T> |
satisfyAll() |
static Spec<T> |
satisfyNone() |
static Spec<T> |
union(Spec<? super T>... specs)Returns a spec that selects the union of those items selected by the provided spec. |
static Spec<T> |
union(Collection<? extends Spec<? super T>> specs)Returns a spec that selects the union of those items selected by the provided spec. |
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.
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.
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.
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.
Returns a spec that selects everything that is not selected by the given spec.
Returns a spec that selects everything that is not selected by the given spec.
Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided.
Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided.
Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided.
Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided.
Returns a spec that selects the union of those items selected by the provided spec. Selects everything when no specs provided.