Package com.google.common.collect
Class UnmodifiableIterator<E>
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<E>
-
- All Implemented Interfaces:
java.util.Iterator<E>
- Direct Known Subclasses:
AbstractIterator
,AbstractSequentialIterator
,UnmodifiableListIterator
@GwtCompatible public abstract class UnmodifiableIterator<E> extends java.lang.Object implements java.util.Iterator<E>
An iterator that does not supportremove()
.- Since:
- 2.0 (imported from Google Collections Library)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
remove()
Deprecated.Unsupported operation.
-
-
-
Method Detail
-
remove
@Deprecated public final void remove()
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the underlying data unmodified.- Specified by:
remove
in interfacejava.util.Iterator<E>
- Throws:
java.lang.UnsupportedOperationException
- always
-
-