Class DirtyIterator<E>
java.lang.Object
org.forgerock.openig.session.jwt.dirty.DirtyIterator<E>
- Type Parameters:
E- type of the iterator
- All Implemented Interfaces:
Iterator<E>
An
Iterator decorator that notifies the provided DirtyListener when one element is removed.-
Constructor Summary
ConstructorsConstructorDescriptionDirtyIterator(Iterator<E> delegate, DirtyListener listener) Builds a new DirtyIterator delegating to the given Iterator and notifying the provided observer. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DirtyIterator
Builds a new DirtyIterator delegating to the given Iterator and notifying the provided observer.- Parameters:
delegate- Iterator delegatelistener- change observer
-
-
Method Details