java.lang.Object
com.google.common.collect.UnmodifiableIterator<E>
- All Implemented Interfaces:
- Iterator<E>
- Direct Known Subclasses:
- AbstractIterator,- AbstractSequentialIterator,- UnmodifiableListIterator
@GwtCompatible
public abstract class UnmodifiableIterator<E extends @Nullable Object>
extends Object
implements 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 SummaryConstructorsModifierConstructorDescriptionprotectedConstructor for use by subclasses.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining, hasNext, next
- 
Constructor Details- 
UnmodifiableIteratorprotected UnmodifiableIterator()Constructor for use by subclasses.
 
- 
- 
Method Details