Class AbstractIteratorDecorator<E>

java.lang.Object
org.apache.openjpa.lib.util.collections.AbstractUntypedIteratorDecorator<E,E>
org.apache.openjpa.lib.util.collections.AbstractIteratorDecorator<E>
All Implemented Interfaces:
Iterator<E>
Direct Known Subclasses:
AbstractDualBidiMap.EntrySetIterator, AbstractDualBidiMap.KeySetIterator, AbstractDualBidiMap.ValuesIterator

public abstract class AbstractIteratorDecorator<E> extends AbstractUntypedIteratorDecorator<E,E>
Provides basic behaviour for decorating an iterator with extra functionality.

All methods are forwarded to the decorated iterator.

Since:
3.0
  • Constructor Details

    • AbstractIteratorDecorator

      protected AbstractIteratorDecorator(Iterator<E> iterator)
      Constructor that decorates the specified iterator.
      Parameters:
      iterator - the iterator to decorate, must not be null
      Throws:
      NullPointerException - if the iterator is null
  • Method Details

    • next

      public E next()