org.apache.commons.collections.iterators
Class UnmodifiableIterator
java.lang.Object
org.apache.commons.collections.iterators.UnmodifiableIterator
- Iterator, Unmodifiable
public final class UnmodifiableIterator
extends java.lang.Object
Decorates an iterator such that it cannot be modified.
$Revision: 1.5 $ $Date: 2004/02/18 00:59:50 $static Iterator | decorate(Iterator iterator) - Decorates the specified iterator such that it cannot be modified.
|
boolean | hasNext()
|
Object | next()
|
void | remove()
|
decorate
public static Iterator decorate(Iterator iterator)
Decorates the specified iterator such that it cannot be modified.
If the iterator is already unmodifiable it is returned directly.
iterator
- the iterator to decorate
hasNext
public boolean hasNext()
remove
public void remove()
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.