Class IndexedItemIterator<R>

    • Constructor Detail

      • IndexedItemIterator

        public IndexedItemIterator​(@NotNull
                                   Indexed<R> items)
      • IndexedItemIterator

        public IndexedItemIterator​(@NotNull
                                   Indexed<R> items,
                                   boolean isReversed)
    • Method Detail

      • hasNext

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

        @NotNull
        public R next()
        Specified by:
        next in interface java.util.Iterator<R>
      • remove

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

        public void forEachRemaining​(@NotNull
                                     java.util.function.Consumer<? super R> consumer)
        Specified by:
        forEachRemaining in interface java.util.Iterator<R>