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>

static final class ShardedConsumer.GeneralShardedConsumer<T> extends ShardedConsumer<T>
  • Field Details

    • myConsumers

      private final Consumer<T>[] myConsumers
    • myDistributor

      private final ToIntFunction<T> myDistributor
    • myNumberOfShards

      private final int myNumberOfShards
  • Constructor Details

  • Method Details

    • write

      public void write(T item)
      Description copied from interface: AutoConsumer
      Write the item to the consumer.
      Parameters:
      item - The item to be written