cascading.pattern.model.tree.predicate.compound
Class XorPredicate

java.lang.Object
  extended by cascading.pattern.model.tree.predicate.Predicate
      extended by cascading.pattern.model.tree.predicate.compound.CompoundPredicate
          extended by cascading.pattern.model.tree.predicate.compound.XorPredicate
All Implemented Interfaces:
Serializable

public class XorPredicate
extends CompoundPredicate

Class XorPredicate returns true if an odd number of child predicates return true.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class cascading.pattern.model.tree.predicate.compound.CompoundPredicate
children
 
Constructor Summary
XorPredicate(List<Predicate> children)
           
XorPredicate(Predicate... children)
           
 
Method Summary
 Boolean evaluate(Iterator<Boolean> results)
           
 
Methods inherited from class cascading.pattern.model.tree.predicate.compound.CompoundPredicate
getChildren, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XorPredicate

public XorPredicate(List<Predicate> children)

XorPredicate

public XorPredicate(Predicate... children)
Method Detail

evaluate

public Boolean evaluate(Iterator<Boolean> results)
Specified by:
evaluate in class CompoundPredicate


Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.