Class Int2IntRBT.KeyIterator

java.lang.Object
org.apache.uima.internal.util.rb_trees.Int2IntRBT.KeyIterator
All Implemented Interfaces:
IntListIterator
Enclosing class:
Int2IntRBT

private class Int2IntRBT.KeyIterator extends Object implements IntListIterator
  • Field Details

    • currentNode

      private int currentNode
  • Constructor Details

    • KeyIterator

      private KeyIterator()
  • Method Details

    • hasNext

      public final boolean hasNext()
      Description copied from interface: IntListIterator
      Check if there is a next element. Does not move the iterator.
      Specified by:
      hasNext in interface IntListIterator
      Returns:
      true iff there is a next element.
    • nextNvc

      public final int nextNvc()
      Description copied from interface: IntListIterator
      version of next() which bypasses the validity check. Only use this if you've already done this check yourself.
      Specified by:
      nextNvc in interface IntListIterator
      Returns:
      the next int in the list and increment the iterator.
    • hasPrevious

      public boolean hasPrevious()
      Description copied from interface: IntListIterator
      Check if there is a previous element. Does not move the iterator.
      Specified by:
      hasPrevious in interface IntListIterator
      Returns:
      true iff there is a previous element.
      See Also:
    • previousNvc

      public int previousNvc()
      Description copied from interface: IntListIterator
      version of previous that bypasses the validity check. Only use this if you've already done this check yourself.
      Specified by:
      previousNvc in interface IntListIterator
      Returns:
      the previous int (found by first moving the iterator one backwards).
    • moveToEnd

      public void moveToEnd()
      Description copied from interface: IntListIterator
      Move the iterator to the end of the underlying index.
      Specified by:
      moveToEnd in interface IntListIterator
      See Also:
    • moveToStart

      public void moveToStart()
      Description copied from interface: IntListIterator
      Move the iterator to the start of the underlying index.
      Specified by:
      moveToStart in interface IntListIterator
      See Also: