org.qi4j.api.query.grammar
Class AndSpecification

java.lang.Object
  extended by org.qi4j.api.query.grammar.ExpressionSpecification
      extended by org.qi4j.api.query.grammar.BinarySpecification
          extended by org.qi4j.api.query.grammar.AndSpecification
All Implemented Interfaces:
Specification<Composite>

public class AndSpecification
extends BinarySpecification

AND Specification.


Field Summary
 
Fields inherited from class org.qi4j.api.query.grammar.BinarySpecification
operands
 
Constructor Summary
AndSpecification(java.lang.Iterable<Specification<Composite>> operands)
           
 
Method Summary
 boolean satisfiedBy(Composite item)
          Test whether an item matches the given specification
 java.lang.String toString()
           
 
Methods inherited from class org.qi4j.api.query.grammar.BinarySpecification
operands
 
Methods inherited from class org.qi4j.api.query.grammar.ExpressionSpecification
and, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AndSpecification

public AndSpecification(java.lang.Iterable<Specification<Composite>> operands)
Method Detail

satisfiedBy

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

Parameters:
item - the item to be tested
Returns:
true if the item matches, false otherwise

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object