public class UnmodifiableListIterator<T> extends UnmodifiableIterator<T> implements java.util.ListIterator<T>
ListIterator prohibiting all calls which
would modify its owning container. All prohibited methods throw an
UnsupportedOperationException.| Constructor and Description |
|---|
UnmodifiableListIterator(java.util.ListIterator<T> i)
Creates a new unmodifiable list iterator from another list iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T o)
Operation is not supported.
|
boolean |
hasPrevious() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
set(T o)
Operation is not supported.
|
hasNext, next, removepublic UnmodifiableListIterator(java.util.ListIterator<T> i)
public boolean hasPrevious()
hasPrevious 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>