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 satisfies all.
Link copied to clipboard
The satisfies none.

Functions

Link copied to clipboard
open fun <T> convertClosureToSpec(closure: Closure<out Any>): Spec<T>
Convert closure to spec.
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>
Satisfy all.
Link copied to clipboard
open fun <T> satisfyNone(): Spec<T>
Satisfy none.
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 provided spec.