Package org.ojalgo.type.function
Class ShardedConsumer.PowerOf2ShardedConsumer<T>
java.lang.Object
org.ojalgo.type.function.ShardedConsumer<T>
org.ojalgo.type.function.ShardedConsumer.PowerOf2ShardedConsumer<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
ConstructorsConstructorDescriptionPowerOf2ShardedConsumer
(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
-
myIndexMask
private final int myIndexMask
-
-
Constructor Details
-
PowerOf2ShardedConsumer
PowerOf2ShardedConsumer(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
-