Class Iterators.Map<T,​U>

  • All Implemented Interfaces:
    Iterator<T>
    Enclosing class:
    Iterators

    public abstract static class Iterators.Map<T,​U>
    extends Object
    For each U, apply U->Iterator<T> function and then iterate all the resulting T.
    • Constructor Detail

      • Map

        protected Map​(Iterator<? extends U> core)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public T next()
      • apply

        protected abstract Iterator<? extends T> apply​(U u)
      • remove

        public final void remove()
        Specified by:
        remove in interface Iterator<T>