Class TransformingIterator<S,​T>

  • All Implemented Interfaces:
    Iterator<T>

    public class TransformingIterator<S,​T>
    extends Object
    implements Iterator<T>
    Since:
    14.0
    • Constructor Detail

      • TransformingIterator

        public TransformingIterator​(Iterator<S> iterator,
                                    Function<S,​T> transformer)
    • Method Detail

      • hasNext

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

        public T next()
        Specified by:
        next in interface Iterator<S>