org.apache.commons.collections.iterators
Class AbstractListIteratorDecorator
java.lang.Object
org.apache.commons.collections.iterators.AbstractListIteratorDecorator
- ListIterator
public class AbstractListIteratorDecorator
extends java.lang.Object
implements ListIterator
Provides basic behaviour for decorating a list iterator with extra functionality.
All methods are forwarded to the decorated list iterator.
$Revision: 1.4 $ $Date: 2004/02/18 00:59:50 $- Rodney Waldhoff
- Stephen Colebourne
protected ListIterator | iterator - The iterator being decorated
|
iterator
protected final ListIterator iterator
The iterator being decorated
AbstractListIteratorDecorator
public AbstractListIteratorDecorator(ListIterator iterator)
Constructor that decorates the specified iterator.
iterator
- the iterator to decorate, must not be null
add
public void add(Object obj)
getListIterator
protected ListIterator getListIterator()
Gets the iterator being decorated.
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
nextIndex
public int nextIndex()
previous
public Object previous()
previousIndex
public int previousIndex()
remove
public void remove()
set
public void set(Object obj)
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.