Class Iterators.Map<T,​U>

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

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

      Constructors 
      Modifier Constructor Description
      protected Map​(java.util.Iterator<? extends U> core)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.util.Iterator<? extends T> apply​(U u)  
      boolean hasNext()  
      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
    • Constructor Detail

      • Map

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

      • hasNext

        public boolean hasNext()
      • next

        public T next()
      • apply

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

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