@GwtCompatible public abstract class UnmodifiableIterator<E> extends java.lang.Object implements java.util.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.
|
protected UnmodifiableIterator()
Copyright © 2010–2019 JBoss by Red Hat. All rights reserved.