Class ArrayCloseableIterator<T>

java.lang.Object
fr.lirmm.graphik.util.stream.AbstractCloseableIterator<T>
fr.lirmm.graphik.util.stream.ArrayCloseableIterator<T>
Type Parameters:
T - the element type
All Implemented Interfaces:
CloseableIterator<T>, Closeable, AutoCloseable

public class ArrayCloseableIterator<T> extends AbstractCloseableIterator<T>
Closeable iterator backed by an in-memory array.
  • Constructor Details

    • ArrayCloseableIterator

      public ArrayCloseableIterator(T... args)
      Creates an iterator over the provided array elements.
      Parameters:
      args - the elements to iterate over
  • Method Details