api / org.gradle.api.specs / CompositeSpec

CompositeSpec

abstract class CompositeSpec<T : Any> : Spec<T>

A org.gradle.api.specs.Spec which aggregates a sequence of other Spec instances.

Parameters

- The target type for this Spec

Functions

equals

open fun equals(other: Any?): Boolean

getSpecs

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

hashCode

open fun hashCode(): Int

isEmpty

open fun isEmpty(): Boolean

Inherited Functions

isSatisfiedBy

abstract fun isSatisfiedBy(element: T): Boolean

Inheritors

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.

OrSpec

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

A CompositeSpec which requires any one of its specs to be true in order to evaluate to true. Uses lazy evaluation.