org.jcon.data
Class AndCondition

java.lang.Object
  extended by org.jcon.data.AndCondition
All Implemented Interfaces:
java.io.Serializable, UnaryPredicate

public class AndCondition
extends java.lang.Object
implements UnaryPredicate, java.io.Serializable

A boolean AND predicate - it takes a list of ANDed subConditions. Uses short-circuit logic (returns true on the first true it finds).

See Also:
Serialized Form

Constructor Summary
AndCondition()
           
 
Method Summary
 boolean execute(java.lang.Object victim)
           
 java.util.ArrayList getSubConditions()
           
 void setSubConditions(java.util.ArrayList newConditions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndCondition

public AndCondition()
Method Detail

execute

public boolean execute(java.lang.Object victim)
Specified by:
execute in interface UnaryPredicate

getSubConditions

public java.util.ArrayList getSubConditions()

setSubConditions

public void setSubConditions(java.util.ArrayList newConditions)