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() |
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-2020 The Apache Software Foundation. All Rights Reserved.