|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgpruitt.datamodeler.util.ReadOnlyIterator<E>
E
- the Type of objects being iterated overpublic class ReadOnlyIterator<E>
Generic Iterator that does not implement the remove operation rendering it read-only. The class wraps another instance of Iterator.
Constructor Summary | |
---|---|
ReadOnlyIterator(java.util.Iterator<E> iterator)
Constructor. |
Method Summary | |
---|---|
boolean |
hasNext()
|
E |
next()
|
void |
remove()
Unsupported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadOnlyIterator(java.util.Iterator<E> iterator)
iterator
- the Iterator to be wrappedMethod Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public E next()
next
in interface java.util.Iterator<E>
public void remove()
remove
in interface java.util.Iterator<E>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |