Package org.ojalgo.type.function
Class ShardedConsumer.GeneralShardedConsumer<T>
java.lang.Object
org.ojalgo.type.function.ShardedConsumer<T>
org.ojalgo.type.function.ShardedConsumer.GeneralShardedConsumer<T>
- All Implemented Interfaces:
AutoCloseable
,Consumer<T>
,AutoConsumer<T>
,AutoFunctional
- Enclosing class:
ShardedConsumer<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ojalgo.type.function.ShardedConsumer
ShardedConsumer.GeneralShardedConsumer<T>, ShardedConsumer.PowerOf2ShardedConsumer<T>
-
Field Summary
FieldsFields inherited from interface org.ojalgo.type.function.AutoConsumer
NULL
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralShardedConsumer
(ToIntFunction<T> distributor, Consumer<T>[] consumers) -
Method Summary
Methods inherited from class org.ojalgo.type.function.ShardedConsumer
close, of
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
-
myConsumers
-
myDistributor
-
myNumberOfShards
private final int myNumberOfShards
-
-
Constructor Details
-
GeneralShardedConsumer
GeneralShardedConsumer(ToIntFunction<T> distributor, Consumer<T>[] consumers)
-
-
Method Details
-
write
Description copied from interface:AutoConsumer
Write the item to the consumer.- Parameters:
item
- The item to be written
-