Class ImmutableConfigurationInvocationHandler.ImmutableIterator
java.lang.Object
org.apache.commons.configuration2.ImmutableConfigurationInvocationHandler.ImmutableIterator
- Enclosing class:
ImmutableConfigurationInvocationHandler
private static final class ImmutableConfigurationInvocationHandler.ImmutableIterator
extends Object
implements Iterator<Object>
A specialized
Iterator
implementation which delegates to an underlying iterator, but does not support the
remove()
method.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImmutableIterator
(Iterator<?> it) Creates a new instance ofImmutableIterator
and sets the underlying iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
wrappedIterator
The underlying iterator.
-
-
Constructor Details
-
ImmutableIterator
Creates a new instance ofImmutableIterator
and sets the underlying iterator.- Parameters:
it
- the underlying iterator
-
-
Method Details
-
hasNext
public boolean hasNext()This implementation just delegates to the underlying iterator. -
next
This implementation just delegates to the underlying iterator. -
remove
public void remove()This implementation just throws an exception: removing objects is not supported.
-