org.elasticsearch.common.inject.internal
Class UnmodifiableIterator<E>
java.lang.Object
org.elasticsearch.common.inject.internal.UnmodifiableIterator<E>
- All Implemented Interfaces:
- Iterator<E>
public abstract class UnmodifiableIterator<E>
- extends Object
- implements Iterator<E>
An iterator that does not support remove()
.
- Author:
- Jared Levy
Method Summary |
void |
remove()
Guaranteed to throw an exception and leave the underlying data unmodified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnmodifiableIterator
public UnmodifiableIterator()
remove
public final void remove()
- Guaranteed to throw an exception and leave the underlying data unmodified.
- Specified by:
remove
in interface Iterator<E>
- Throws:
UnsupportedOperationException
- always
Copyright © 2009-2012. All Rights Reserved.