T
- type of values iterating overpublic class LazyIteratorChain<T> extends Object implements Iterator<T>
Constructor and Description |
---|
LazyIteratorChain(Iterator<Iterator<T>> iterators) |
LazyIteratorChain(Iterator<T>... iterators) |
Modifier and Type | Method and Description |
---|---|
static <T> Iterator<T> |
chain(Iterator<Iterator<T>> iterators)
Returns the concatenation of all iterators in
iterators . |
static <T> Iterator<T> |
chain(Iterator<T>... iterators)
Returns the concatenation of all iterators in
iterators . |
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public static <T> Iterator<T> chain(Iterator<Iterator<T>> iterators)
iterators
.T
- iterators
- public static <T> Iterator<T> chain(Iterator<T>... iterators)
iterators
.T
- iterators
- Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.