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> AndSpec<T> |
and(Collection<? extends Spec<? super T>> specs)
Deprecated.
Use
intersect(Collection) instead. |
static <T> AndSpec<T> |
and(Spec<? super T>... specs)
Deprecated.
Use
intersect(Spec[]) instead. |
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> NotSpec<T> |
not(Spec<? super T> spec)
Deprecated.
Use
negate(Spec) instead. |
static <T> Spec<T> |
or(boolean defaultWhenNoSpecs,
List<? extends Spec<? super T>> specs)
Deprecated.
Use
union(Collection) instead. |
static <T> OrSpec<T> |
or(Collection<? extends Spec<? super T>> specs)
Deprecated.
Use
union(Collection) instead. |
static <T> OrSpec<T> |
or(Spec<? super T>... specs)
Deprecated.
Use
union(Spec[]) instead. |
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()
@Deprecated public static <T> AndSpec<T> and(Spec<? super T>... specs)
intersect(Spec[])
instead.@Deprecated public static <T> AndSpec<T> and(Collection<? extends Spec<? super T>> specs)
intersect(Collection)
instead.public static <T> Spec<T> intersect(Spec<? super T>... specs)
public static <T> Spec<T> intersect(Collection<? extends Spec<? super T>> specs)
@Deprecated public static <T> OrSpec<T> or(Spec<? super T>... specs)
union(Spec[])
instead.@Deprecated public static <T> OrSpec<T> or(Collection<? extends Spec<? super T>> specs)
union(Collection)
instead.public static <T> Spec<T> union(Spec<? super T>... specs)
public static <T> Spec<T> union(Collection<? extends Spec<? super T>> specs)
@Deprecated public static <T> NotSpec<T> not(Spec<? super T> spec)
negate(Spec)
instead.public static <T> Spec<T> negate(Spec<? super T> spec)
@Deprecated public static <T> Spec<T> or(boolean defaultWhenNoSpecs, List<? extends Spec<? super T>> specs)
union(Collection)
instead.