|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.KVList.RemoveDisabledIterator<E>
E
- the value typeprivate static class KVList.RemoveDisabledIterator<E>
small wrapper class of an Iterator the suppresses the use of the remove method
Field Summary | |
---|---|
private java.util.Iterator<E> |
iterator
the original iterator |
Constructor Summary | |
---|---|
KVList.RemoveDisabledIterator(java.util.Iterator<E> i)
constructor |
Method Summary | |
---|---|
boolean |
hasNext()
return whether there are more elements |
E |
next()
return the first element |
void |
remove()
remove the current element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Iterator<E> iterator
Constructor Detail |
---|
public KVList.RemoveDisabledIterator(java.util.Iterator<E> i)
i
- the iteratorMethod Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
true
if sopublic E next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator<E>
java.util.NoSuchElementException
- on attempts to read past the endpublic void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator<E>
java.lang.UnsupportedOperationException
- always
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |