public class AbstractListIteratorDecorator extends Object implements ListIterator
All methods are forwarded to the decorated list iterator.
| Modifier and Type | Field and Description |
|---|---|
protected ListIterator |
iterator
The iterator being decorated
|
| Constructor and Description |
|---|
AbstractListIteratorDecorator(ListIterator iterator)
Constructor that decorates the specified iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object obj) |
protected ListIterator |
getListIterator()
Gets the iterator being decorated.
|
boolean |
hasNext() |
boolean |
hasPrevious() |
Object |
next() |
int |
nextIndex() |
Object |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(Object obj) |
protected final ListIterator iterator
public AbstractListIteratorDecorator(ListIterator iterator)
iterator - the iterator to decorate, must not be nullIllegalArgumentException - if the collection is nullprotected ListIterator getListIterator()
public boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorpublic Object next()
next in interface Iteratornext in interface ListIteratorpublic int nextIndex()
nextIndex in interface ListIteratorpublic boolean hasPrevious()
hasPrevious in interface ListIteratorpublic Object previous()
previous in interface ListIteratorpublic int previousIndex()
previousIndex in interface ListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorpublic void set(Object obj)
set in interface ListIteratorpublic void add(Object obj)
add in interface ListIteratorCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.