Package org.drools.model.constraints
Class AndConstraints
- java.lang.Object
-
- org.drools.model.constraints.AbstractConstraint
-
- org.drools.model.constraints.AndConstraints
-
- All Implemented Interfaces:
Constraint,ModelComponent
public class AndConstraints extends AbstractConstraint implements ModelComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.model.Constraint
Constraint.Type
-
-
Constructor Summary
Constructors Constructor Description AndConstraints(List<Constraint> constraints)AndConstraints(Constraint... constraints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AndConstraintsand(Constraint constraint)List<Constraint>getChildren()Constraint.TypegetType()booleanisEqualTo(ModelComponent o)Constraintnegate()AndConstraintsreplaceVariable(Variable oldVar, Variable newVar)StringtoString()-
Methods inherited from class org.drools.model.constraints.AbstractConstraint
cloneConstraint, or, with
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.model.Constraint
predicateInformation
-
-
-
-
Constructor Detail
-
AndConstraints
public AndConstraints(List<Constraint> constraints)
-
AndConstraints
public AndConstraints(Constraint... constraints)
-
-
Method Detail
-
and
public AndConstraints and(Constraint constraint)
- Overrides:
andin classAbstractConstraint
-
getChildren
public List<Constraint> getChildren()
- Specified by:
getChildrenin interfaceConstraint
-
getType
public Constraint.Type getType()
- Specified by:
getTypein interfaceConstraint
-
isEqualTo
public boolean isEqualTo(ModelComponent o)
- Specified by:
isEqualToin interfaceModelComponent
-
negate
public Constraint negate()
- Specified by:
negatein interfaceConstraint
-
replaceVariable
public AndConstraints replaceVariable(Variable oldVar, Variable newVar)
- Specified by:
replaceVariablein interfaceConstraint
-
-