Class Iterators.Transform<S,​T>

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

    public abstract static class Iterators.Transform<S,​T>
    extends java.lang.Object
    implements java.util.Iterator<T>
    Wraps a base iterator with a transformation function.
    • Constructor Summary

      Constructors 
      Constructor Description
      Transform​(java.util.Iterator<S> base)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      T next()  
      void remove()  
      protected abstract T transform​(S next)  
      • 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

      • Transform

        public Transform​(java.util.Iterator<S> base)
    • Method Detail

      • hasNext

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

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

        protected abstract T transform​(S next)
      • remove

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