Class UnmodifiableIterator<E,T extends Iterator<? extends E>>

java.lang.Object
org.apache.commons.collections4.iterators.UnmodifiableIterator<E,T>
Type Parameters:
E - The type of elements returned by this iterator.
T - The wrapped Iterator type.
All Implemented Interfaces:
Iterator<E>, Unmodifiable

public final class UnmodifiableIterator<E,T extends Iterator<? extends E>> extends Object implements Iterator<E>, Unmodifiable
Decorates an iterator such that it cannot be modified.

Calling remove() throws UnsupportedOperationException.

Since:
3.0