T
- type of values iterating overpublic class LazyIteratorChain<T>
extends java.lang.Object
implements java.util.Iterator<T>
Constructor and Description |
---|
LazyIteratorChain(java.util.Iterator<java.util.Iterator<T>> iterators) |
LazyIteratorChain(java.util.Iterator<T>... iterators) |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Iterator<T> |
chain(java.util.Iterator<java.util.Iterator<T>> iterators)
Returns the concatenation of all iterators in
iterators . |
static <T> java.util.Iterator<T> |
chain(java.util.Iterator<T>... iterators)
Returns the concatenation of all iterators in
iterators . |
boolean |
hasNext() |
T |
next() |
void |
remove() |
public LazyIteratorChain(java.util.Iterator<java.util.Iterator<T>> iterators)
public LazyIteratorChain(java.util.Iterator<T>... iterators)
public static <T> java.util.Iterator<T> chain(java.util.Iterator<java.util.Iterator<T>> iterators)
iterators
.T
- iterators
- public static <T> java.util.Iterator<T> chain(java.util.Iterator<T>... iterators)
iterators
.T
- iterators
- public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"