Package com.uc4.util
Class NoRemoveIterator<E>
java.lang.Object
com.uc4.util.NoRemoveIterator<E>
- Type Parameters:
E
- Type
- All Implemented Interfaces:
Iterator<E>
Implementation of the iterator interface.
Remove is not supported and will throw an exception
-
Constructor Summary
ConstructorsConstructorDescriptionNoRemoveIterator
(Iterator<E> it) Constructs a iterator using the specified 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
-
Constructor Details
-
NoRemoveIterator
Constructs a iterator using the specified iterator. All method call except remove are delegated to the original iterator.- Parameters:
it
- original iterator
-
-
Method Details