Class EmptyListIterator

  • All Implemented Interfaces:
    java.util.Iterator, java.util.ListIterator, ResettableIterator, ResettableListIterator

    @Deprecated(since="2021-04-30")
    public class EmptyListIterator
    extends java.lang.Object
    implements ResettableListIterator
    Deprecated.
    Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.
    Provides an implementation of an empty list iterator.

    This class provides an implementation of an empty list iterator. This class provides for binary compatability between Commons Collections 2.1.1 and 3.1 due to issues with IteratorUtils.

    Since:
    Commons Collections 2.1.1 and 3.1
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(java.lang.Object obj)
      Deprecated.
       
      java.lang.Object getKey()
      Deprecated.
       
      java.lang.Object getValue()
      Deprecated.
       
      boolean hasNext()
      Deprecated.
       
      boolean hasPrevious()
      Deprecated.
       
      java.lang.Object next()
      Deprecated.
       
      int nextIndex()
      Deprecated.
       
      java.lang.Object previous()
      Deprecated.
       
      int previousIndex()
      Deprecated.
       
      void remove()
      Deprecated.
       
      void reset()
      Deprecated.
       
      void set​(java.lang.Object obj)
      Deprecated.
       
      java.lang.Object setValue​(java.lang.Object value)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
      • Methods inherited from interface java.util.ListIterator

        add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
    • Field Detail

      • RESETTABLE_INSTANCE

        public static final ResettableListIterator RESETTABLE_INSTANCE
        Deprecated.
        Singleton instance of the iterator.
        Since:
        Commons Collections 3.1
      • INSTANCE

        public static final java.util.ListIterator INSTANCE
        Deprecated.
        Singleton instance of the iterator.
        Since:
        Commons Collections 2.1.1 and 3.1
    • Method Detail

      • hasNext

        public boolean hasNext()
        Deprecated.
      • next

        public java.lang.Object next()
        Deprecated.
      • hasPrevious

        public boolean hasPrevious()
        Deprecated.
      • previous

        public java.lang.Object previous()
        Deprecated.
      • nextIndex

        public int nextIndex()
        Deprecated.
      • previousIndex

        public int previousIndex()
        Deprecated.
      • add

        public void add​(java.lang.Object obj)
        Deprecated.
      • set

        public void set​(java.lang.Object obj)
        Deprecated.
      • remove

        public void remove()
        Deprecated.
      • getKey

        public java.lang.Object getKey()
        Deprecated.
      • getValue

        public java.lang.Object getValue()
        Deprecated.
      • setValue

        public java.lang.Object setValue​(java.lang.Object value)
        Deprecated.
      • reset

        public void reset()
        Deprecated.