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 | Constructor and Description |
|---|---|
protected |
AbstractObjectListIterator() |
| 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, skipclone, equals, finalize, 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>Copyright © 2011–2025. All rights reserved.