public final class

UnmodifiableListIterator

extends Object
implements ListIterator<E> Unmodifiable
java.lang.Object
   ↳ org.apache.commons.collections.iterators.UnmodifiableListIterator

Class Overview

Decorates a list iterator such that it cannot be modified.

Summary

Public Methods
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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Iterator
From interface java.util.ListIterator

Public Methods

public void add (Object obj)

public static ListIterator decorate (ListIterator iterator)

Decorates the specified iterator such that it cannot be modified.

Parameters
iterator the iterator to decorate
Throws
IllegalArgumentException if the iterator is null

public boolean hasNext ()

public boolean hasPrevious ()

public Object next ()

public int nextIndex ()

public Object previous ()

public int previousIndex ()

public void remove ()

public void set (Object obj)