|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.util.CompositeIterator<T>
T - Type of objects within the iteratorspublic class CompositeIterator<T>
Combine 2 iterators into a composite iterator
| Constructor Summary | |
|---|---|
CompositeIterator(java.util.Iterator<? extends T> it1,
java.util.Iterator<? extends T> it2)
Create a composite of 2 iterators |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
void |
set(T newVal)
Replaces the last element accessed via the iterator (usually via .next()) with newVal. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeIterator(java.util.Iterator<? extends T> it1,
java.util.Iterator<? extends T> it2)
it1 - First iteratorit2 - Second iterator| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public T next()
next in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>public void set(T newVal)
MutableIterator
set in interface MutableIterator<T>newVal - The new value to replace for the previously accessed element in the iteration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||