Class IteratorAdapter<T>

java.lang.Object
fr.lirmm.graphik.util.stream.IteratorAdapter<T>
Type Parameters:
T - the iterated element type
All Implemented Interfaces:
Iterator<T>

public class IteratorAdapter<T> extends Object implements Iterator<T>
Adapts a CloseableIterator to the standard Iterator interface.
  • Field Details

  • Constructor Details

    • IteratorAdapter

      public IteratorAdapter(CloseableIterator<T> iterator)
      Creates an iterator adapter around a closeable iterator.
      Parameters:
      iterator - the iterator to adapt
  • Method Details