public class CompoundIterator extends Object implements Iterator
| Modifier and Type | Field and Description |
|---|---|
protected int |
index
The index of the current iterator.
|
protected Iterator[] |
iters
The array of iterators to iterate over.
|
| Constructor and Description |
|---|
CompoundIterator(Iterator[] iters)
Construct a CompoundIterator over the given array of iterators.
|
protected final Iterator[] iters
protected int index
public CompoundIterator(Iterator[] iters)
iters - Array of iterators to iterate over.IllegalArgumentException - Array is public boolean hasNext()
public Object next()
next in interface IteratorNoSuchElementException - There are no more elements.public void remove()
remove in interface IteratorIllegalStateExceptionUnsupportedOperationExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.