public class AbstractListIteratorDecorator<E> extends Object implements ListIterator<E>
All methods are forwarded to the decorated list iterator.
| 构造器和说明 |
|---|
AbstractListIteratorDecorator(ListIterator<E> iterator)
Constructor that decorates the specified iterator.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(E obj) |
protected ListIterator<E> |
getListIterator()
Gets the iterator being decorated.
|
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(E obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic AbstractListIteratorDecorator(ListIterator<E> iterator)
iterator - the iterator to decorate, must not be nullNullPointerException - if the iterator is nullprotected ListIterator<E> getListIterator()
public int nextIndex()
nextIndex 在接口中 ListIterator<E>public boolean hasPrevious()
hasPrevious 在接口中 ListIterator<E>public E previous()
previous 在接口中 ListIterator<E>public int previousIndex()
previousIndex 在接口中 ListIterator<E>public void set(E obj)
set 在接口中 ListIterator<E>public void add(E obj)
add 在接口中 ListIterator<E>Copyright © 2022. All rights reserved.