|
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(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(ListIterator<T> i)
| Method Detail |
|---|
public boolean hasPrevious()
hasPrevious in interface ListIterator<T>public int nextIndex()
nextIndex in interface ListIterator<T>public T previous()
previous in interface ListIterator<T>public int previousIndex()
previousIndex in interface ListIterator<T>public void add(T o)
add in interface ListIterator<T>UnsupportedOperationExceptionpublic void set(T o)
set in interface ListIterator<T>UnsupportedOperationException
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||