Class PositiveIntSet_impl.IntListIteratorOverArray

java.lang.Object
org.apache.uima.internal.util.PositiveIntSet_impl.IntListIteratorOverArray
All Implemented Interfaces:
IntListIterator
Enclosing class:
PositiveIntSet_impl

private class PositiveIntSet_impl.IntListIteratorOverArray extends Object implements IntListIterator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int[]
     
    private int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if there is a next element.
    boolean
    Check if there is a previous element.
    void
    Move the iterator to the end of the underlying index.
    void
    Move the iterator to the start of the underlying index.
    int
    Return the next feature structure and increment the iterator.
    int
    Return the previous feature structure and decrement the iterator.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • a

      private int[] a
    • pos

      private int pos
  • Constructor Details

    • IntListIteratorOverArray

      IntListIteratorOverArray(int[] a)
  • Method Details

    • hasNext

      public 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.
    • next

      public int next() throws NoSuchElementException
      Description copied from interface: IntListIterator
      Return the next feature structure and increment the iterator.
      Specified by:
      next in interface IntListIterator
      Returns:
      The next feature structure.
      Throws:
      NoSuchElementException - If no next element exists, i.e., when the iterator points at the last position in the index.
    • 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.
    • previous

      public int previous()
      Description copied from interface: IntListIterator
      Return the previous feature structure and decrement the iterator.
      Specified by:
      previous in interface IntListIterator
      Returns:
      The previous feature structure.
    • 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
    • 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