OrSpec (Gradle API 2.14.1)

org.gradle.api.specs

## Class OrSpec<T>

- java.lang.Object
- - org.gradle.api.specs.CompositeSpec<T>
  - - org.gradle.api.specs.OrSpec<T>

- Type Parameters:
    `T` - The target type for this Spec
  All Implemented Interfaces:
    Spec<T>

      public class OrSpec<T>
      extends CompositeSpec<T>

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

- - ### Constructor Summary

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

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `hashCode()`
    `boolean` | `isSatisfiedBy(T object)`

    - ### Methods inherited from class org.gradle.api.specs.CompositeSpec

      `equals, getSpecs`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### OrSpec

          public OrSpec(Spec<? super T>... specs)

    - #### OrSpec

          public OrSpec(Iterable<? extends Spec<? super T>> specs)

  - ### Method Detail

    - #### isSatisfiedBy

          public boolean isSatisfiedBy(T object)

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `CompositeSpec<T>`