Class EmptyOrderedIterator<E>

java.lang.Object
org.apache.commons.collections4.iterators.EmptyOrderedIterator<E>
Type Parameters:
E - the type of elements returned by this iterator.
All Implemented Interfaces:
Iterator<E>, OrderedIterator<E>, ResettableIterator<E>

public class EmptyOrderedIterator<E> extends Object implements OrderedIterator<E>, ResettableIterator<E>
Provides an implementation of an empty ordered iterator.
Since:
3.1
  • Field Details

  • Constructor Details

  • Method Details

    • emptyOrderedIterator

      public static <E> OrderedIterator<E> emptyOrderedIterator()
      Typed instance of the iterator.
      Type Parameters:
      E - the element type
      Returns:
      OrderedIterator<E>
    • add

      public void add(E obj)
    • hasNext

      public boolean hasNext()
    • hasPrevious

      public boolean hasPrevious()
    • next

      public E next()
    • nextIndex

      public int nextIndex()
    • previous

      public E previous()
    • previousIndex

      public int previousIndex()
    • remove

      public void remove()
    • reset

      public void reset()
    • set

      public void set(E obj)