@GwtCompatible public abstract class UnmodifiableListIterator<E> extends UnmodifiableIterator<E> implements ListIterator<E>
A list iterator that does not support UnmodifiableIterator.remove()
, add(E)
, or set(E)
.
Modifier | Constructor and Description |
---|---|
protected |
UnmodifiableListIterator()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E e)
Deprecated.
Unsupported operation.
|
void |
set(E e)
Deprecated.
Unsupported operation.
|
remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove
forEachRemaining
protected UnmodifiableListIterator()
Constructor for use by subclasses.
@Deprecated public final void add(E e)
Guaranteed to throw an exception and leave the underlying data unmodified.
add
in interface ListIterator<E>
UnsupportedOperationException
- always@Deprecated public final void set(E e)
Guaranteed to throw an exception and leave the underlying data unmodified.
set
in interface ListIterator<E>
UnsupportedOperationException
- always