Class EmptyOrderedIterator<E>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static OrderedIterator INSTANCE
      Singleton instance of the iterator.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EmptyOrderedIterator()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(E obj)  
      static <E> OrderedIterator<E> emptyOrderedIterator()
      Typed instance of the iterator.
      boolean hasNext()  
      boolean hasPrevious()  
      E next()  
      int nextIndex()  
      E previous()  
      int previousIndex()  
      void remove()  
      void reset()  
      void set​(E obj)  
      • Methods inherited from class java.lang.Object

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

        forEachRemaining, hasNext, next, remove
    • Field Detail

      • INSTANCE

        public static final OrderedIterator INSTANCE
        Singleton instance of the iterator.
        Since:
        3.1
    • Constructor Detail

      • EmptyOrderedIterator

        protected EmptyOrderedIterator()
        Constructor.
    • Method Detail

      • emptyOrderedIterator

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

        public boolean hasNext()
      • next

        public E next()
      • hasPrevious

        public boolean hasPrevious()
      • previous

        public E previous()
      • nextIndex

        public int nextIndex()
      • previousIndex

        public int previousIndex()
      • add

        public void add​(E obj)
      • set

        public void set​(E obj)
      • remove

        public void remove()
      • reset

        public void reset()