org.gradle.api.specs
Class OrSpec<T>

java.lang.Object
  extended by org.gradle.api.specs.CompositeSpec<T>
      extended by 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
OrSpec(Spec<? super T>... specs)
           
 
Method Summary
 boolean isSatisfiedBy(T object)
           
 
Methods inherited from class org.gradle.api.specs.CompositeSpec
equals, getSpecs, hashCode
 
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)
Method Detail

isSatisfiedBy

public boolean isSatisfiedBy(T object)