api / org.gradle.api.specs / AndSpec

AndSpec

open class AndSpec<T : Any> : CompositeSpec<T>

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

Parameters

- The target type for this Spec

Constructors

<init>

AndSpec()
AndSpec(vararg specs: Spec<in T>)
AndSpec(specs: MutableIterable<Spec<in T>>)

Properties

EMPTY

static val EMPTY: AndSpec<*>

Functions

and

open fun and(vararg specs: Spec<in T>): AndSpec<T>
open fun and(spec: Closure<Any>): AndSpec<T>open fun and(spec: Spec<in T>): AndSpec<T>

Typed and() method for a single Spec.

empty

open static fun <T : Any> empty(): AndSpec<T>

hashCode

open fun hashCode(): Int

isSatisfiedBy

open fun isSatisfiedBy(object: T): Boolean

Inherited Functions

equals

open fun equals(other: Any?): Boolean

getSpecs

open fun getSpecs(): MutableList<Spec<in T>>

isEmpty

open fun isEmpty(): Boolean