net.floodlightcontroller.storage
Class CompoundPredicate

java.lang.Object
  extended by net.floodlightcontroller.storage.CompoundPredicate
All Implemented Interfaces:
IPredicate

public class CompoundPredicate
extends java.lang.Object
implements IPredicate

Predicate class to handle AND and OR combinations of a number of child predicates. The result of the logical combination of the child predicates can also be negated to support a NOT operation.

Author:
rob

Nested Class Summary
static class CompoundPredicate.Operator
           
 
Constructor Summary
CompoundPredicate(CompoundPredicate.Operator operator, boolean negated, IPredicate... predicateList)
           
 
Method Summary
 CompoundPredicate.Operator getOperator()
           
 IPredicate[] getPredicateList()
           
 boolean isNegated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundPredicate

public CompoundPredicate(CompoundPredicate.Operator operator,
                         boolean negated,
                         IPredicate... predicateList)
Method Detail

getOperator

public CompoundPredicate.Operator getOperator()

isNegated

public boolean isNegated()

getPredicateList

public IPredicate[] getPredicateList()