Class ConstraintIterator
- java.lang.Object
-
- com.aquima.interactions.rule.constraint.ConstraintIterator
-
- All Implemented Interfaces:
Iterator<IConstraint>
public class ConstraintIterator extends Object implements Iterator<IConstraint>
This iterator is used to determine which constraints are applicable for a specific attribute.- Since:
- 5.0
- Author:
- O. Kerpershoek
-
-
Constructor Summary
Constructors Constructor Description ConstraintIterator(IAttributeNode node)
Constructs the iterator for the specific attribute node from the rule graph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
boolean
isEmpty()
This method returns a boolean indicating if the iterator does not have any constraints to iterate over.IConstraint
next()
void
remove()
-
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 Detail
-
ConstraintIterator
public ConstraintIterator(IAttributeNode node)
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 Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<IConstraint>
-
next
public 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.
-
-