org.apache.commons.collections.iterators
public final class UnmodifiableListIterator extends Object implements ListIterator, Unmodifiable
Since: Commons Collections 3.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
Method Summary | |
---|---|
void | add(Object obj) |
static ListIterator | decorate(ListIterator iterator)
Decorates the specified iterator such that it cannot be modified.
|
boolean | hasNext() |
boolean | hasPrevious() |
Object | next() |
int | nextIndex() |
Object | previous() |
int | previousIndex() |
void | remove() |
void | set(Object obj) |
Parameters: iterator the iterator to decorate
Throws: IllegalArgumentException if the iterator is null