Class TransformingIterator<S,T>

java.lang.Object
org.infinispan.cli.util.TransformingIterator<S,T>
All Implemented Interfaces:
Iterator<T>

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

    • TransformingIterator

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

    • hasNext

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

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