org.apache.commons.collections.iterators

Class UnmodifiableListIterator

Implemented Interfaces:
ListIterator, Unmodifiable

public final class UnmodifiableListIterator
extends java.lang.Object
implements ListIterator, Unmodifiable

Decorates a list iterator such that it cannot be modified.
Version:
$Revision: 1.5 $ $Date: 2004/02/18 00:59:50 $
Author:
Stephen Colebourne
Since:
Commons Collections 3.0

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)

Method Details

add

public void add(Object obj)

decorate

public static ListIterator decorate(ListIterator iterator)
Decorates the specified iterator such that it cannot be modified.
Parameters:
iterator - the iterator to decorate

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()

next

public Object next()

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.