Package io.ebeaninternal.json
Class ModifyAwareIterator<E>
- java.lang.Object
-
- io.ebeaninternal.json.ModifyAwareIterator<E>
-
- All Implemented Interfaces:
Iterator<E>
public class ModifyAwareIterator<E> extends Object implements Iterator<E>
Wraps an iterator for the purposes of detecting modifications.
-
-
Constructor Summary
Constructors Constructor Description ModifyAwareIterator(ModifyAwareOwner owner, Iterator<E> it)
Create with an Owner and the underlying Iterator this wraps.
-
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
ModifyAwareIterator
public ModifyAwareIterator(ModifyAwareOwner owner, Iterator<E> it)
Create with an Owner and the underlying Iterator this wraps.The owner is notified of the removals.
-
-