org.qi4j.functional
Class Specifications.OrSpecification<T>

java.lang.Object
  extended by org.qi4j.functional.Specifications.OrSpecification<T>
All Implemented Interfaces:
Specification<T>
Enclosing class:
Specifications

public static class Specifications.OrSpecification<T>
extends java.lang.Object
implements Specification<T>

OR Specification.


Method Summary
 Specifications.AndSpecification<T> and(Specification<T>... specifications)
           
 Specifications.OrSpecification<T> or(Specification<T>... specifications)
           
 boolean satisfiedBy(T instance)
          Test whether an item matches the given specification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

satisfiedBy

public boolean satisfiedBy(T instance)
Description copied from interface: Specification
Test whether an item matches the given specification

Specified by:
satisfiedBy in interface Specification<T>
Parameters:
instance - the item to be tested
Returns:
true if the item matches, false otherwise

and

public Specifications.AndSpecification<T> and(Specification<T>... specifications)

or

public Specifications.OrSpecification<T> or(Specification<T>... specifications)