E
- type of the iteratorpublic class DirtyIterator<E> extends Object implements Iterator<E>
Iterator
decorator that notifies the provided DirtyListener
when one element is removed.Constructor and Description |
---|
DirtyIterator(Iterator<E> delegate,
DirtyListener listener)
Builds a new DirtyIterator delegating to the given Iterator and notifying the provided observer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public DirtyIterator(Iterator<E> delegate, DirtyListener listener)
delegate
- Iterator delegatelistener
- change observerCopyright © 2025 Open Identity Platform Community. All rights reserved.