Interface IntListIterator

  • All Known Subinterfaces:
    ComparableIntIterator

    public interface IntListIterator
    Int iterator in the Java style, but returning/using ints. Contrast with IntPointerIterator, which is in the UIMA style allowing forward and backwards movement.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Check if there is a next element.
      boolean hasPrevious()
      Check if there is a previous element.
      void moveToEnd()
      Move the iterator to the end of the underlying index.
      void moveToStart()
      Move the iterator to the start of the underlying index.
      int next()
      Return the next feature structure and increment the iterator.
      int previous()
      Return the previous feature structure and decrement the iterator.
    • Method Detail

      • hasNext

        boolean hasNext()
        Check if there is a next element. Does not move the iterator.
        Returns:
        true iff there is a next element.
      • next

        int next()
          throws java.util.NoSuchElementException
        Return the next feature structure and increment the iterator.
        Returns:
        The next feature structure.
        Throws:
        java.util.NoSuchElementException - If no next element exists, i.e., when the iterator points at the last position in the index.
      • hasPrevious

        boolean hasPrevious()
        Check if there is a previous element. Does not move the iterator.
        Returns:
        true iff there is a previous element.
      • previous

        int previous()
        Return the previous feature structure and decrement the iterator.
        Returns:
        The previous feature structure.
        Throws:
        java.util.NoSuchElementException - If no previous element exists, i.e., when the iterator points at the first position in the index.
      • moveToStart

        void moveToStart()
        Move the iterator to the start of the underlying index.
      • moveToEnd

        void moveToEnd()
        Move the iterator to the end of the underlying index.