Class Map1Iterator<From,To>

java.lang.Object
org.apache.jena.util.iterator.NiceIterator<To>
org.apache.jena.util.iterator.Map1Iterator<From,To>
All Implemented Interfaces:
Iterator<To>, org.apache.jena.atlas.iterator.IteratorCloseable<To>, org.apache.jena.atlas.lib.Closeable, ClosableIterator<To>, ExtendedIterator<To>

public class Map1Iterator<From,To> extends NiceIterator<To>
An iterator that consumes an underlying iterator and maps its results before delivering them; supports remove if the underlying iterator does.
  • Constructor Details

    • Map1Iterator

      public Map1Iterator(Function<From,To> map, Iterator<From> base)
      Construct a list of the converted.
      Parameters:
      map - The conversion to apply.
      base - the iterator of elements to convert
  • Method Details