Class CloseableIteratorMapper<E,​S>

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.Iterator<S>, CloseableIterator<S>

    @Deprecated
    public class CloseableIteratorMapper<E,​S>
    extends IteratorMapper<E,​S>
    implements CloseableIterator<S>
    Deprecated.
    since 9.3 users can just use IteratorMapper as it handles CloseableIterators now
    A iterator that maps each value to the output of the Function. Note that the remove is supported if the iterator originally supported remove.
    Since:
    8.0
    Author:
    William Burns
    • Constructor Summary

      Constructors 
      Constructor Description
      CloseableIteratorMapper​(java.util.Iterator<? extends E> iterator, java.util.function.Function<? super E,​? extends S> function)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()
      Deprecated.
       
      • 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, hasNext, next, remove
    • Constructor Detail

      • CloseableIteratorMapper

        public CloseableIteratorMapper​(java.util.Iterator<? extends E> iterator,
                                       java.util.function.Function<? super E,​? extends S> function)
        Deprecated.