Class SequencedReader<S,T>

java.lang.Object
org.ojalgo.netio.SequencedReader<S,T>
All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<T>, FromFileReader<T>

final class SequencedReader<S,T> extends Object implements FromFileReader<T>
  • Field Details

  • Constructor Details

    • SequencedReader

      SequencedReader(BlockingQueue<S> sources, Function<S,? extends FromFileReader<T>> factory)
      Create an
      invalid reference
      AutoSupplier
      that will supply items from the containers, one after the other, until all containers are empty. You can create multiple such suppliers sharing the same queue of containers.
      Type Parameters:
      S - The type of some sort of item container (maybe a File)
      T - The supplier item type (what do the files contain?)
      Parameters:
      sources - A set of item containers (could be a set of File:s)
      factory - A factory method that can take one of the "containers" and return an item supplier.
  • Method Details