Class ImmutableConfigurationInvocationHandler.ImmutableIterator
- java.lang.Object
-
- org.apache.commons.configuration2.ImmutableConfigurationInvocationHandler.ImmutableIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Object>
- Enclosing class:
- ImmutableConfigurationInvocationHandler
private static final class ImmutableConfigurationInvocationHandler.ImmutableIterator extends java.lang.Object implements java.util.Iterator<java.lang.Object>
A specializedIterator
implementation which delegates to an underlying iterator, but does not support theremove()
method.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Iterator<?>
wrappedIterator
The underlying iterator.
-
Constructor Summary
Constructors Constructor Description ImmutableIterator(java.util.Iterator<?> it)
Creates a new instance ofImmutableIterator
and sets the underlying iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
This implementation just delegates to the underlying iterator.java.lang.Object
next()
This implementation just delegates to the underlying iterator.void
remove()
This implementation just throws an exception: removing objects is not supported.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
This implementation just delegates to the underlying iterator.- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.Object>
-
next
public java.lang.Object next()
This implementation just delegates to the underlying iterator.- Specified by:
next
in interfacejava.util.Iterator<java.lang.Object>
-
remove
public void remove()
This implementation just throws an exception: removing objects is not supported.- Specified by:
remove
in interfacejava.util.Iterator<java.lang.Object>
-
-