Class BooleanSupplierKeyedMapExecutor


public class BooleanSupplierKeyedMapExecutor extends AbstractBooleanSupplierKeyedMapLogic<Sink,Object>
A convenience class for creating a map as an executor.
Since:
2.4.0
  • Constructor Details

    • BooleanSupplierKeyedMapExecutor

      @SafeVarargs public BooleanSupplierKeyedMapExecutor(Map<BooleanSupplier,Sink> map, Sink defaultLogic, Map.Entry<BooleanSupplier,Sink>... logics)
      Creates an instance of BooleanSupplierKeyedMapExecutor
      Parameters:
      map - An external map that will be used as storage of logics.
      defaultLogic - The default create logic if the key used was not in the map.
      logics - An arrays of create logic mapped to key.
    • BooleanSupplierKeyedMapExecutor

      @SafeVarargs public BooleanSupplierKeyedMapExecutor(Sink defaultLogic, Map.Entry<BooleanSupplier,Sink>... logics)
      Creates an instance of BooleanSupplierKeyedMapExecutor
      Parameters:
      defaultLogic - The default create logic if the key used was not in the map.
      logics - An arrays of create logic mapped to key.
    • BooleanSupplierKeyedMapExecutor

      @SafeVarargs public BooleanSupplierKeyedMapExecutor(Map.Entry<BooleanSupplier,Sink>... logics)
      Creates an instance of BooleanSupplierKeyedMapExecutor
      Parameters:
      logics - An arrays of create logic mapped to key.
    • BooleanSupplierKeyedMapExecutor

      public BooleanSupplierKeyedMapExecutor(Map<BooleanSupplier,Sink> map)
      Creates an instance of BooleanSupplierKeyedMapExecutor
      Parameters:
      map - An external map that already contains logics.
  • Method Details