Package org.gradle.api.specs
Class OrSpec<T>
- java.lang.Object
-
- org.gradle.api.specs.CompositeSpec<T>
-
- org.gradle.api.specs.OrSpec<T>
-
- Type Parameters:
T
- The target type for this Spec
- All Implemented Interfaces:
Spec<T>
public class OrSpec<T> extends CompositeSpec<T>
ACompositeSpec
which requires any one of its specs to be true in order to evaluate to true. Uses lazy evaluation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> OrSpec<T>
empty()
boolean
isSatisfiedBy(T object)
OrSpec<T>
or(Spec<? super T>... specs)
-
Methods inherited from class org.gradle.api.specs.CompositeSpec
equals, getSpecs, hashCode, isEmpty
-
-
-
-
Field Detail
-
EMPTY
public static final OrSpec<?> EMPTY
-
-