Class IteratorIterator<T>

    • Constructor Detail

      • IteratorIterator

        @SafeVarargs
        public IteratorIterator​(Iterator<T>... iterators)

        Constructor for IteratorIterator.

        Parameters:
        iterators - a Iterator object.
      • IteratorIterator

        public IteratorIterator​(List<Iterator<T>> iterators)

        Constructor for IteratorIterator.

        Parameters:
        iterators - a List object.
    • Method Detail

      • hasNext

        public boolean hasNext()

        hasNext

        Specified by:
        hasNext in interface Iterator<T>
        Returns:
        a boolean.
      • next

        public T next()

        next

        Specified by:
        next in interface Iterator<T>
        Returns:
        a T object.
      • remove

        public void remove()

        remove

        Specified by:
        remove in interface Iterator<T>