Class ConstraintIterator
java.lang.Object
com.aquima.interactions.rule.constraint.ConstraintIterator
- All Implemented Interfaces:
Iterator<IConstraint>
This iterator is used to determine which constraints are applicable for a specific attribute.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs the iterator for the specific attribute node from the rule graph. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ConstraintIterator
Constructs the iterator for the specific attribute node from the rule graph.- Parameters:
node
- The attribute node from the rule graph for which the iterator should be constructed.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<IConstraint>
-
next
- Specified by:
next
in interfaceIterator<IConstraint>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<IConstraint>
-
isEmpty
public boolean isEmpty()This method returns a boolean indicating if the iterator does not have any constraints to iterate over.- Returns:
- a boolean indicating if the iterator does not have any constraints to iterate over.
-