Package org.ojalgo.type.function
Class ManagedConsumer<T>
java.lang.Object
org.ojalgo.type.function.ManagedConsumer<T>
- All Implemented Interfaces:
AutoCloseable
,Consumer<T>
,AutoConsumer<T>
,AutoFunctional
-
Field Summary
FieldsFields inherited from interface org.ojalgo.type.function.AutoConsumer
NULL
-
Constructor Summary
Constructors -
Method Summary
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.AutoConsumer
accept, writeBatch
-
Field Details
-
myConsumer
-
myManager
-
-
Constructor Details
-
ManagedConsumer
ManagedConsumer(Throughput manager, Consumer<T> consumer)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceAutoConsumer<T>
- Throws:
Exception
-
write
Description copied from interface:AutoConsumer
Write the item to the consumer.- Specified by:
write
in interfaceAutoConsumer<T>
- Parameters:
item
- The item to be written
-