|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.util.iterator.WrappingIterator
public abstract class WrappingIterator
Base class for an iterator that wraps another iterator.
| Constructor Summary | |
|---|---|
WrappingIterator()
Default constructor. |
|
WrappingIterator(java.util.Iterator basis)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Implementation of Iterator interface. |
java.lang.Object |
next()
Implementation of the Iterator interface. |
void |
remove()
Removes the current element (not supported). |
protected abstract java.lang.Object |
retrieveCurrentObject(java.util.Iterator basis)
Retrieves current object by querying the underlying iterator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrappingIterator()
public WrappingIterator(java.util.Iterator basis)
basis - Contains the iterator we are based on| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - Alwaysprotected abstract java.lang.Object retrieveCurrentObject(java.util.Iterator basis)
basis - The underlying iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||