Class ModifyAwareIterator<E>

java.lang.Object
io.ebeaninternal.json.ModifyAwareIterator<E>
All Implemented Interfaces:
Iterator<E>

public final class ModifyAwareIterator<E> extends Object implements Iterator<E>
Wraps an iterator for the purposes of detecting modifications.
  • Constructor Details

    • ModifyAwareIterator

      public ModifyAwareIterator(ModifyAwareType owner, Iterator<E> it)
      Create with an Owner and the underlying Iterator this wraps.

      The owner is notified of the removals.

  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<E>
    • next

      public E next()
      Specified by:
      next in interface Iterator<E>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<E>