Class AbstractListIteratorDecorator
- java.lang.Object
-
- org.apache.commons.collections.iterators.AbstractListIteratorDecorator
-
- All Implemented Interfaces:
Iterator,ListIterator
@Deprecated(since="2021-04-30") public class AbstractListIteratorDecorator extends Object implements ListIterator
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Provides basic behaviour for decorating a list iterator with extra functionality.All methods are forwarded to the decorated list iterator.
- Since:
- Commons Collections 3.0
-
-
Constructor Summary
Constructors Constructor Description AbstractListIteratorDecorator(ListIterator iterator)Deprecated.Constructor that decorates the specified iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(Object obj)Deprecated.booleanhasNext()Deprecated.booleanhasPrevious()Deprecated.Objectnext()Deprecated.intnextIndex()Deprecated.Objectprevious()Deprecated.intpreviousIndex()Deprecated.voidremove()Deprecated.voidset(Object obj)Deprecated.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
AbstractListIteratorDecorator
public AbstractListIteratorDecorator(ListIterator iterator)
Deprecated.Constructor that decorates the specified iterator.- Parameters:
iterator- the iterator to decorate, must not be null- Throws:
IllegalArgumentException- if the collection is null
-
-
Method Detail
-
hasNext
public boolean hasNext()
Deprecated.- Specified by:
hasNextin interfaceIterator- Specified by:
hasNextin interfaceListIterator
-
next
public Object next()
Deprecated.- Specified by:
nextin interfaceIterator- Specified by:
nextin interfaceListIterator
-
nextIndex
public int nextIndex()
Deprecated.- Specified by:
nextIndexin interfaceListIterator
-
hasPrevious
public boolean hasPrevious()
Deprecated.- Specified by:
hasPreviousin interfaceListIterator
-
previous
public Object previous()
Deprecated.- Specified by:
previousin interfaceListIterator
-
previousIndex
public int previousIndex()
Deprecated.- Specified by:
previousIndexin interfaceListIterator
-
remove
public void remove()
Deprecated.- Specified by:
removein interfaceIterator- Specified by:
removein interfaceListIterator
-
set
public void set(Object obj)
Deprecated.- Specified by:
setin interfaceListIterator
-
add
public void add(Object obj)
Deprecated.- Specified by:
addin interfaceListIterator
-
-