|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.collections.UnmodifiableIterator<E>
public class UnmodifiableIterator<E>
This is a wrapper for a Iterator
prohibiting all calls which would
modify its owning container. All prohibited methods throw an
UnsupportedOperationException
.
Constructor Summary | |
---|---|
UnmodifiableIterator(java.util.Iterator<E> i)
Creates a new unmodifiable iterator from another iterator. |
Method Summary | |
---|---|
boolean |
hasNext()
|
E |
next()
|
void |
remove()
Operation is not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnmodifiableIterator(java.util.Iterator<E> i)
Method 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>
java.lang.UnsupportedOperationException
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |