org.apache.commons.collections.iterators
public final class UnmodifiableIterator extends Object implements Iterator, Unmodifiable
Since: Commons Collections 3.0
Version: $Revision: 1.5 $ $Date: 2004/02/18 00:59:50 $
| Method Summary | |
|---|---|
| static Iterator | decorate(Iterator iterator)
Decorates the specified iterator such that it cannot be modified.
|
| boolean | hasNext() |
| Object | next() |
| void | remove() |
If the iterator is already unmodifiable it is returned directly.
Parameters: iterator the iterator to decorate
Throws: IllegalArgumentException if the iterator is null