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