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(Spec<? super T>... specs) |
static <T> Spec<T> |
convertClosureToSpec(Closure closure) |
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() |