Class UnionIteration<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 UnionIteration<E,​X extends java.lang.Exception>
    extends LookAheadIteration<E,​X>
    Deprecated.
    An Iteration that returns the bag union of the results of a number of Iterations. 'Bag union' means that the UnionIteration does not filter duplicate objects.
    • Field Detail

      • argIter

        private final java.util.Iterator<? extends Iteration<? extends E,​X extends java.lang.Exception>> argIter
        Deprecated.
      • currentIter

        private Iteration<? extends E,​X extends java.lang.Exception> currentIter
        Deprecated.
    • Constructor Detail

      • UnionIteration

        @SafeVarargs
        public UnionIteration​(Iteration<? extends E,​X>... args)
        Deprecated.
        Creates a new UnionIteration that returns the bag union of the results of a number of Iterations.
        Parameters:
        args - The Iterations containing the elements to iterate over.
      • UnionIteration

        public UnionIteration​(java.lang.Iterable<? extends Iteration<? extends E,​X>> args)
        Deprecated.
        Creates a new UnionIteration that returns the bag union of the results of a number of Iterations.
        Parameters:
        args - The Iterations containing the elements to iterate over.
    • Method Detail

      • getNextElement

        protected E getNextElement()
                            throws X extends java.lang.Exception
        Deprecated.
        Description copied from class: LookAheadIteration
        Gets the next element. Subclasses should implement this method so that it returns the next element.
        Specified by:
        getNextElement in class LookAheadIteration<E,​X extends java.lang.Exception>
        Returns:
        The next element, or null if no more elements are available.
        Throws:
        X extends java.lang.Exception