public abstract class AbstractObjectListIterator<K> extends AbstractObjectBidirectionalIterator<K> implements ObjectListIterator<K>
This class provides trivial type-specific implementations of set() and add() which throw an
UnsupportedOperationException. For primitive types, it also provides a trivial implementation of set() and
add() that just invokes the type-specific one.
ListIterator| Modifier and Type | Method and Description |
|---|---|
void |
add(K k)
This method just throws an
UnsupportedOperationException. |
void |
set(K k)
This method just throws an
UnsupportedOperationException. |
backremove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, hasPrevious, next, nextIndex, previous, previousIndex, removebackskiphasPrevious, previousforEachRemainingpublic void set(K k)
UnsupportedOperationException.set in interface ListIterator<K>public void add(K k)
UnsupportedOperationException.add in interface ListIterator<K>