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, wait
accept
public AbstractConstraint()
public AbstractConstraint(Operator operator)
operator
- Operator defines how this constraint is joined with other constraints.public void setOperator(Operator operator)
setOperator
in interface Constraint
operator
- And Operator or Or Operator.public Operator getOperator()
getOperator
in interface Constraint
public void negate()
negate
in interface Constraint
public boolean isNegated()
isNegated
in interface Constraint
Copyright © 2010 - 2020 Adobe. All Rights Reserved