@GwtCompatible public abstract class UnmodifiableIterator<E> extends Object implements Iterator<E>
remove().
UnmodifiableIterator is used primarily in conjunction with implementations of
ImmutableCollection, such as ImmutableList. You can, however, convert an existing
iterator to an UnmodifiableIterator using Iterators.unmodifiableIterator(java.util.Iterator<T>).
| Modifier | Constructor and Description |
|---|---|
protected |
UnmodifiableIterator()
Constructor for use by subclasses.
|
protected UnmodifiableIterator()
@Deprecated public final void remove()
remove in interface Iterator<E>UnsupportedOperationException - alwaysCopyright © 2010-2015. All Rights Reserved.