AndSpec (Gradle API 2.14.1)

Package: org.gradle.api.specs

## [Java] Class AndSpec<T>

- org.gradle.api.specs.AndSpec

- A 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

- - ### Constructor Summary

    Constructors
    Constructor and description
    `AndSpec (Spec<? super T>... specs)`
    `AndSpec (Iterable<? extends Spec<? super T>> specs)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `AndSpec<T>` | `and(Spec<? super T>... specs)`
    `AndSpec<T>` | `and(groovy.lang.Closure spec)`
    `int` | `hashCode()`
    `boolean` | `isSatisfiedBy(T object)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class CompositeSpec` | `equals, getSpecs, hashCode`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### public AndSpec(Spec<? super T>... specs)

    - #### public AndSpec(Iterable<? extends Spec<? super T>> specs)

  - ### Method Detail

    - #### public AndSpec<T> and(Spec<? super T>... specs)

    - #### public AndSpec<T> and(groovy.lang.Closure spec)

    - #### @Override public int hashCode()

    - #### public boolean isSatisfiedBy(T object)