org.apache.commons.collections.iterators
public final class UnmodifiableListIterator extends Object implements ListIterator, Unmodifiable
Since: Commons Collections 3.0
Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
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