org.apache.commons.collections.iterators
Class UnmodifiableListIterator
java.lang.Object
org.apache.commons.collections.iterators.UnmodifiableListIterator
- ListIterator, Unmodifiable
public final class UnmodifiableListIterator
extends java.lang.Object
Decorates a list iterator such that it cannot be modified.
$Revision: 1.5 $ $Date: 2004/02/18 00:59:50 $
add
public void add(Object obj)
decorate
public static ListIterator decorate(ListIterator iterator)
Decorates the specified iterator such that it cannot be modified.
iterator
- the iterator to decorate
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
nextIndex
public int nextIndex()
previous
public Object previous()
previousIndex
public int previousIndex()
remove
public void remove()
set
public void set(Object obj)
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.