Package org.ojalgo.type.function
Class SequencedSupplier<S,T>
- java.lang.Object
-
- org.ojalgo.type.function.SequencedSupplier<S,T>
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<T>
,java.util.function.Supplier<T>
,AutoFunctional
,AutoSupplier<T>
final class SequencedSupplier<S,T> extends java.lang.Object implements AutoSupplier<T>
-
-
Constructor Summary
Constructors Constructor Description SequencedSupplier(java.util.concurrent.BlockingQueue<S> sources, java.util.function.Function<S,? extends java.util.function.Supplier<T>> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
private void
nextSupplier()
T
read()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ojalgo.type.function.AutoSupplier
drainTo, get, iterator, processAll
-
-
-
-
Method Detail
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceAutoSupplier<S>
- Throws:
java.lang.Exception
-
read
public T read()
- Specified by:
read
in interfaceAutoSupplier<S>
-
nextSupplier
private void nextSupplier()
-
-