Class UnmodifiableListIterator
- java.lang.Object
-
- org.apache.commons.collections.iterators.UnmodifiableListIterator
-
- All Implemented Interfaces:
Iterator,ListIterator,Unmodifiable
@Deprecated(since="2021-04-30") public final class UnmodifiableListIterator extends Object implements ListIterator, Unmodifiable
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Decorates a list iterator such that it cannot be modified.- Since:
- Commons Collections 3.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(Object obj)Deprecated.static ListIteratordecorate(ListIterator iterator)Deprecated.Decorates the specified iterator such that it cannot be modified.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
-
-
-
-
Method Detail
-
decorate
public static ListIterator decorate(ListIterator iterator)
Deprecated.Decorates the specified iterator such that it cannot be modified.- Parameters:
iterator- the iterator to decorate- Throws:
IllegalArgumentException- if the iterator is null
-
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
-
-