@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<? extends T>)
.
Modifier | Constructor and Description |
---|---|
protected |
UnmodifiableIterator()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
remove()
Deprecated.
Unsupported operation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, hasNext, next
protected UnmodifiableIterator()
@Deprecated public final void remove()
remove
in interface Iterator<E>
UnsupportedOperationException
- alwaysCopyright © 2010-2016. All Rights Reserved.