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 Details

    • 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 Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<IConstraint>
    • next

      public IConstraint next()
      Specified by:
      next in interface Iterator<IConstraint>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<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.