public final class UnmodifiableIterator<E> extends Object implements Iterator<E>, Unmodifiable
Attempts to modify it will result in an UnsupportedOperationException.
public static <E> Iterator<E> unmodifiableIterator(Iterator<? extends E> iterator)
If the iterator is already unmodifiable it is returned directly.
E
- the element typeiterator
- the iterator to decorateIllegalArgumentException
- if the iterator is nullCopyright © 2001–2013 The Apache Software Foundation. All rights reserved.