org.drools.rule
Class AndConstraint
java.lang.Object
org.drools.rule.MutableTypeConstraint
org.drools.rule.AbstractCompositeConstraint
org.drools.rule.AndConstraint
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, AlphaNodeFieldConstraint, BetaNodeFieldConstraint, Constraint, RuleComponent
public class AndConstraint
- extends AbstractCompositeConstraint
AND composite constraint, so the user can do things like:
Person( name == 'Edson' && surname == 'Tirelli' )
- Author:
- etirelli
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
AndConstraint
public AndConstraint()
isAllowed
public boolean isAllowed(java.lang.Object object,
InternalWorkingMemory workingMemory,
ContextEntry ctx)
-
isAllowedCachedLeft
public boolean isAllowedCachedLeft(ContextEntry context,
java.lang.Object object)
-
isAllowedCachedRight
public boolean isAllowedCachedRight(ReteTuple tuple,
ContextEntry context)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in class AbstractCompositeConstraint
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class AbstractCompositeConstraint
clone
public java.lang.Object clone()
- Description copied from interface:
Constraint
- Clones the constraint
- Specified by:
clone
in interface Constraint
- Specified by:
clone
in class AbstractCompositeConstraint
- Returns: