Class ObjectListIterator<E>

java.lang.Object
com.globalmentor.collections.iterators.ObjectIterator<E>
com.globalmentor.collections.iterators.ObjectListIterator<E>
Type Parameters:
E - The type of elements in this iterator
All Implemented Interfaces:
Iterable<E>, Iterator<E>, ListIterator<E>

public class ObjectListIterator<E> extends ObjectIterator<E> implements ListIterator<E>
An iterable and iterator to a single object. This implementation allows null values. This implementation does not allow removal, as removing has no meaning in this context.
Author:
Garret Wilson
  • Field Details

    • hasNext

      protected boolean hasNext
      Whether we've not retrieved the object.
  • Constructor Details

    • ObjectListIterator

      public ObjectListIterator(E object)
      Object constructor.
      Parameters:
      object - The single object over which iteration should occur.
  • Method Details