public interface ActionCondition
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate()
Evaulates the current operation set on the ActionCondition given the
current left and right operands.
|
String |
getLeftOperand()
Returns the left operand.
|
String |
getOperation()
Returns the current operation.
|
String |
getRightOperand()
Returns the right operand.
|
void |
setLeftOperand(String operand)
Sets the left operand for the current operation.
|
void |
setOperation(String operation)
Sets the operation to perform on the left and right operands.
|
void |
setRightOperand(String operand)
Sets the right operand for the current operation.
|
void setOperation(String operation)
operation
- String specifying the operation.IllegalArgumentException
- If an invalid operation is specified.void setLeftOperand(String operand)
operand
- String specifying the left operand.void setRightOperand(String operand)
operand
- String specifying the right operand.String getOperation()
String getLeftOperand()
String getRightOperand()
boolean evaluate()
Copyright © 2023. All rights reserved.