Class CompoundIterator<T>

  • Type Parameters:
    T - The type returned by the Iterator.
    All Implemented Interfaces:
    Iterator<T>

    @InternalApi
    @Deprecated
    public class CompoundIterator<T>
    extends Object
    implements Iterator<T>
    Deprecated.
    Creates a single compound Iterator from an array of Iterators.
    See Also:
    Iterator
    • Constructor Detail

      • CompoundIterator

        public CompoundIterator​(Iterator<T>... iterators)
        Deprecated.
        Parameters:
        iterators - The iterators use.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Deprecated.
        Specified by:
        hasNext in interface Iterator<T>
      • next

        public T next()
        Deprecated.
        Specified by:
        next in interface Iterator<T>
      • remove

        public void remove()
        Deprecated.
        Specified by:
        remove in interface Iterator<T>