public interface Condition
Modifier and Type | Method and Description |
---|---|
void |
addElse(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed
when this condition is false.
|
void |
addWhen(ConditionOrAction item)
Adds a condition or action to the list of conditions/actions which should be executed
when this condition is true.
|
Iterator<ConditionOrAction> |
elseIterator()
The returned iterator can be used to get the actions/conditions which are executed
when this condition is false.
|
int |
elseSize()
Returns the number of action/conditions which should be executed
when this condition is false.
|
String |
getId() |
boolean |
isAfterCondition() |
boolean |
isBeforeCondition() |
Iterator<ConditionOrAction> |
whenIterator()
The returned iterator can be used to get the actions/conditions which are executed
when this condition is true.
|
int |
whenSize()
Returns the number of action/conditions which should be executed
when this condition is true.
|
boolean isBeforeCondition()
boolean isAfterCondition()
void addWhen(ConditionOrAction item)
item
- Condition or Actionvoid addElse(ConditionOrAction item)
item
- Condition or Actionint whenSize()
int elseSize()
Iterator<ConditionOrAction> whenIterator()
java.util.Iterator
can be used to remove conditions or actions.Iterator<ConditionOrAction> elseIterator()
java.util.Iterator
can be used to remove conditions or actions.String getId()
Copyright © 2021. All rights reserved.