Specs

open class Specs(source)

Provides a number of org.gradle.api.specs.Spec implementations.

Since

0.7

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
The shared spec that is satisfied by every object.
Link copied to clipboard
The shared spec that is satisfied by no object.

Functions

Link copied to clipboard
open fun <T> convertClosureToSpec(closure: Closure<out Any>): Spec<T>
Returns a spec satisfied by objects for which the closure returns a Groovy-true value.
Link copied to clipboard
open fun <T> intersect(specs: Collection<out Spec<in T>>): Spec<T>
open fun <T> intersect(specs: Array<Spec<in T>>): Spec<T>
Returns a spec that selects the intersection of those items selected by the given specs.
Link copied to clipboard
open fun <T> negate(spec: Spec<in T>): Spec<T>
Returns a spec that selects everything that is not selected by the given spec.
Link copied to clipboard
open fun <T> satisfyAll(): Spec<T>
Returns the shared spec that is satisfied by every object.
Link copied to clipboard
open fun <T> satisfyNone(): Spec<T>
Returns the shared spec that is satisfied by no object.
Link copied to clipboard
open fun <T> union(specs: Collection<out Spec<in T>>): Spec<T>
open fun <T> union(specs: Array<Spec<in T>>): Spec<T>
Returns a spec that selects the union of those items selected by the given specs.