Class Reverse.ReversedListIterator<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index  
      private boolean isReversed  
      private @NotNull java.util.List<T> list  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReversedListIterator​(@NotNull java.util.List<T> list, boolean isReversed)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      boolean isReversed()  
      T next()  
      void remove()  
      • 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
    • Field Detail

      • list

        @NotNull
        private final @NotNull java.util.List<T> list
      • isReversed

        private final boolean isReversed
      • index

        private int index
    • Constructor Detail

      • ReversedListIterator

        ReversedListIterator​(@NotNull
                             @NotNull java.util.List<T> list,
                             boolean isReversed)
    • Method Detail

      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<T>
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>