AndSpec

open class AndSpec<T> : CompositeSpec<T> (source)

A org.gradle.api.specs.CompositeSpec which requires all its specs to be true in order to evaluate to true. Uses lazy evaluation.

Parameters

<T>

The target type for this Spec

Constructors

Link copied to clipboard
constructor()
constructor(specs: Array<Spec<in T>>)
constructor(specs: Iterable<out Spec<in T>>)

Properties

Link copied to clipboard
val EMPTY: AndSpec<out Any>

Functions

Link copied to clipboard
open fun and(spec: Closure): AndSpec<T>
open fun and(specs: Array<Spec<in T>>): AndSpec<T>

open fun and(spec: Spec<in T>): AndSpec<T>
Typed and() method for a single Spec.
Link copied to clipboard
open fun <T> empty(): AndSpec<T>
Link copied to clipboard
fun equals(o: Any): Boolean
Link copied to clipboard
@Nullable
open fun findUnsatisfiedSpec(object: T): Spec<in T>
Finds the first Spec that is not satisfied by the object.
Link copied to clipboard
open fun getSpecs(): List<Spec<in T>>
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
operator fun <T> Spec<T>.invoke(arg: T): Boolean

Enables function invocation syntax on Spec instances.

Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open fun isSatisfiedBy(object: T): Boolean