public abstract class AbstractConstraint extends java.lang.Object implements Constraint
| Constructor and Description |
|---|
AbstractConstraint()
Creates a new instance of AbstractConstraint which is AND'd with other constraints.
|
AbstractConstraint(Operator operator)
Creates a new instance of AbstractConstraint with the given operator.
|
| Modifier and Type | Method and Description |
|---|---|
Operator |
getOperator()
Gets the operator used to join this constraint with other constraints.
|
boolean |
isNegated()
Checks whether this constraint has been negated.
|
void |
negate()
Negates this constraint.
|
void |
setOperator(Operator operator)
Sets the operator used to join this constraint with other constraints.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptpublic AbstractConstraint()
public AbstractConstraint(Operator operator)
operator - Operator defines how this constraint is joined with other constraints.public void setOperator(Operator operator)
setOperator in interface Constraintoperator - And Operator or Or Operator.public Operator getOperator()
getOperator in interface Constraintpublic void negate()
negate in interface Constraintpublic boolean isNegated()
isNegated in interface ConstraintCopyright © 2010 - 2023 Adobe. All Rights Reserved