org.apache.commons.collections.iterators
Class UnmodifiableIterator
- Iterator, Unmodifiable
public final class UnmodifiableIterator
Decorates an iterator such that it cannot be modified.
Version:
- Stephen Colebourne
- Commons Collections 3.0
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-2005 Apache Software Foundation. All Rights Reserved.