类 JoinedIterator<T>

  • 所有已实现的接口:
    Iterator<T>

    public class JoinedIterator<T>
    extends Object
    implements Iterator<T>
    An Iterator implementation that wraps other Iterators, and presents them all as one continuous Iterator. When any method from Iterator is called, we delegate to each wrapped Iterator in turn until all wrapped Iterators are exhausted.
    作者:
    Gavine King, Steve Ebersole
    • 构造器详细资料

      • JoinedIterator

        public JoinedIterator​(List<Iterator<T>> wrappedIterators)
      • JoinedIterator

        public JoinedIterator​(Iterator<T>... iteratorsToWrap)
    • 方法详细资料

      • hasNext

        public boolean hasNext()
        指定者:
        hasNext 在接口中 Iterator<T>
      • remove

        public void remove()
        指定者:
        remove 在接口中 Iterator<T>
      • updateCurrentIterator

        protected void updateCurrentIterator()