Class AbstractListIteratorDecorator<E>

java.lang.Object
org.apache.commons.collections4.iterators.AbstractListIteratorDecorator<E>
All Implemented Interfaces:
Iterator<E>, ListIterator<E>
Direct Known Subclasses:
FixedSizeList.FixedSizeListIterator, PredicatedList.PredicatedListIterator, SetUniqueList.SetListListIterator, TransformedList.TransformedListIterator

public class AbstractListIteratorDecorator<E> extends Object implements ListIterator<E>
Provides basic behaviour for decorating a list iterator with extra functionality.

All methods are forwarded to the decorated list iterator.

Since:
3.0
  • Field Details

    • iterator

      private final ListIterator<E> iterator
      The iterator being decorated
  • Constructor Details

    • AbstractListIteratorDecorator

      public AbstractListIteratorDecorator(ListIterator<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