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 Iterator
hasNext
in interface ListIterator
public Object next()
next
in interface Iterator
next
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object previous()
previous
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
public void set(Object obj)
set
in interface ListIterator
public void add(Object obj)
add
in interface ListIterator
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.