T - type of elements in the given iteratorpublic class UnmodifiableListIterator<T> extends ForwardingListIterator<T>
ListIterator so that any mutating operations throw an UnsupportedOperationException.| Constructor and Description |
|---|
UnmodifiableListIterator(ListIterator<? extends T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T t) |
protected ListIterator<T> |
delegate() |
void |
remove() |
void |
set(T t) |
hasPrevious, nextIndex, previous, previousIndexhasNext, nexttoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasNext, nextforEachRemainingpublic UnmodifiableListIterator(ListIterator<? extends T> delegate)
protected ListIterator<T> delegate()
delegate in class ForwardingListIterator<T>public final void remove()
remove in interface Iterator<T>remove in interface ListIterator<T>remove in class ForwardingIterator<T>public final void set(T t)
set in interface ListIterator<T>set in class ForwardingListIterator<T>public final void add(T t)
add in interface ListIterator<T>add in class ForwardingListIterator<T>Copyright © 2020. All rights reserved.