Package org.forgerock.openig.jwt.dirty
Class DirtyIterator<E>
- java.lang.Object
-
- org.forgerock.openig.jwt.dirty.DirtyIterator<E>
-
- Type Parameters:
E
- type of the iterator
- All Implemented Interfaces:
Iterator<E>
public class DirtyIterator<E> extends Object implements Iterator<E>
AnIterator
decorator that notifies the providedDirtyListener
when one element is removed.
-
-
Constructor Summary
Constructors Constructor Description DirtyIterator​(Iterator<E> delegate, DirtyListener listener)
Builds a new DirtyIterator delegating to the given Iterator and notifying the provided observer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
void
remove()
-
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 Detail
-
DirtyIterator
public DirtyIterator​(Iterator<E> delegate, DirtyListener listener)
Builds a new DirtyIterator delegating to the given Iterator and notifying the provided observer.- Parameters:
delegate
- Iterator delegatelistener
- change observer
-
-