Class UnmodifiableIterator<E>
java.lang.Object
org.docx4j.com.google.common.collect.UnmodifiableIterator<E>
- All Implemented Interfaces:
java.util.Iterator<E>
- Direct Known Subclasses:
AbstractSequentialIterator,UnmodifiableListIterator
@GwtCompatible public abstract class UnmodifiableIterator<E> extends java.lang.Object implements java.util.Iterator<E>
An iterator that does not support
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>).
- Since:
- 2.0
- Author:
- Jared Levy
-
Constructor Summary
Constructors Modifier Constructor Description protectedUnmodifiableIterator()Constructor for use by subclasses. -
Method Summary
Modifier and Type Method Description voidremove()Deprecated.Unsupported operation.
-
Constructor Details
-
UnmodifiableIterator
protected UnmodifiableIterator()Constructor for use by subclasses.
-
-
Method Details