Class LookAheadIteration<E,​X extends Exception>

    • Constructor Detail

      • LookAheadIteration

        protected LookAheadIteration()
        Deprecated.
    • Method Detail

      • getNextElement

        protected abstract E getNextElement()
                                     throws X extends Exception
        Deprecated.
        Gets the next element. Subclasses should implement this method so that it returns the next element.
        Returns:
        The next element, or null if no more elements are available.
        Throws:
        X extends Exception
      • hasNext

        public final boolean hasNext()
                              throws X extends Exception
        Deprecated.
        Description copied from interface: Iteration
        Returns true if the iteration has more elements. (In other words, returns true if Iteration.next() would return an element rather than throwing a NoSuchElementException.)
        Returns:
        true if the iteration has more elements.
        Throws:
        X
        X extends Exception
      • next

        public final E next()
                     throws X extends Exception
        Deprecated.
        Description copied from interface: Iteration
        Returns the next element in the iteration.
        Returns:
        the next element in the iteration.
        Throws:
        X extends Exception