Class DualUnionIteration<E,​X extends java.lang.Exception>

  • All Implemented Interfaces:
    java.lang.AutoCloseable, CloseableIteration<E,​X>, Iteration<E,​X>

    @Deprecated(since="4.1.0")
    public class DualUnionIteration<E,​X extends java.lang.Exception>
    extends java.lang.Object
    implements CloseableIteration<E,​X>
    Deprecated.
    Provides a bag union of the two provided iterations.
    • Field Detail

      • iteration1

        private CloseableIteration<? extends E,​X extends java.lang.Exception> iteration1
        Deprecated.
      • iteration2

        private CloseableIteration<? extends E,​X extends java.lang.Exception> iteration2
        Deprecated.
      • nextElement

        private E nextElement
        Deprecated.
      • closed

        private boolean closed
        Deprecated.
        Flag indicating whether this iteration has been closed.
    • Method Detail

      • getNextElement

        public E getNextElement()
                         throws X extends java.lang.Exception
        Deprecated.
        Throws:
        X extends java.lang.Exception
      • hasNext

        public final boolean hasNext()
                              throws X extends java.lang.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.)
        Specified by:
        hasNext in interface Iteration<E,​X extends java.lang.Exception>
        Returns:
        true if the iteration has more elements.
        Throws:
        X
        X extends java.lang.Exception
      • next

        public final E next()
                     throws X extends java.lang.Exception
        Deprecated.
        Description copied from interface: Iteration
        Returns the next element in the iteration.
        Specified by:
        next in interface Iteration<E,​X extends java.lang.Exception>
        Returns:
        the next element in the iteration.
        Throws:
        X extends java.lang.Exception
      • lookAhead

        private E lookAhead()
                     throws X extends java.lang.Exception
        Deprecated.
        Fetches the next element if it hasn't been fetched yet and stores it in nextElement.
        Returns:
        The next element, or null if there are no more results.
        Throws:
        X - If there is an issue getting the next element or closing the iteration.
        X extends java.lang.Exception
      • remove

        public void remove()
        Deprecated.
        Throws an UnsupportedOperationException.
        Specified by:
        remove in interface Iteration<E,​X extends java.lang.Exception>
      • close

        public final void close()
                         throws X extends java.lang.Exception
        Deprecated.
        Description copied from interface: CloseableIteration
        Closes this iteration, freeing any resources that it is holding. If the iteration has already been closed then invoking this method has no effect.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface CloseableIteration<E,​X extends java.lang.Exception>
        Throws:
        X extends java.lang.Exception