Class IndexedIterator<R,​S,​I extends ReversibleIterator<java.lang.Integer>>

    • Constructor Detail

      • IndexedIterator

        public IndexedIterator​(@NotNull
                               Indexed<S> items,
                               @NotNull
                               I iterator)
    • 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>