java.util.Iterator
, java.util.ListIterator
PredicatedList.PredicatedListIterator
, TransformedList.TransformedListIterator
public class AbstractListIteratorDecorator
extends java.lang.Object
implements java.util.ListIterator
All methods are forwarded to the decorated list iterator.
Modifier and Type | Field | Description |
---|---|---|
protected java.util.ListIterator |
iterator |
The iterator being decorated
|
Constructor | Description |
---|---|
AbstractListIteratorDecorator(java.util.ListIterator iterator) |
Constructor that decorates the specified iterator.
|
Modifier and Type | Method | Description |
---|---|---|
void |
add(java.lang.Object obj) |
|
protected java.util.ListIterator |
getListIterator() |
Gets the iterator being decorated.
|
boolean |
hasNext() |
|
boolean |
hasPrevious() |
|
java.lang.Object |
next() |
|
int |
nextIndex() |
|
java.lang.Object |
previous() |
|
int |
previousIndex() |
|
void |
remove() |
|
void |
set(java.lang.Object obj) |
public AbstractListIteratorDecorator(java.util.ListIterator iterator)
iterator
- the iterator to decorate, must not be nulljava.lang.IllegalArgumentException
- if the collection is nullprotected java.util.ListIterator getListIterator()
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in interface java.util.ListIterator
public java.lang.Object next()
next
in interface java.util.Iterator
next
in interface java.util.ListIterator
public int nextIndex()
nextIndex
in interface java.util.ListIterator
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator
public java.lang.Object previous()
previous
in interface java.util.ListIterator
public int previousIndex()
previousIndex
in interface java.util.ListIterator
public void remove()
remove
in interface java.util.Iterator
remove
in interface java.util.ListIterator
public void set(java.lang.Object obj)
set
in interface java.util.ListIterator
public void add(java.lang.Object obj)
add
in interface java.util.ListIterator
Copyright © 2001-2017 Apache Software Foundation. All Rights Reserved.