Class AbstractBooleanSupplierKeyedMapLogic<TYPE_LOGIC,TYPE_OUTPUT>

java.lang.Object
xyz.ronella.trivial.handy.AbstractKeyedMapLogic<BooleanSupplier,TYPE_LOGIC,TYPE_OUTPUT>
xyz.ronella.trivial.handy.AbstractBooleanSupplierKeyedMapLogic<TYPE_LOGIC,TYPE_OUTPUT>
Type Parameters:
TYPE_LOGIC - The type of logic that the map will hold.
TYPE_OUTPUT - The type of output that the logic will create.
Direct Known Subclasses:
BooleanSupplierKeyedMapExecutor, BooleanSupplierKeyedMapGenerator

public abstract class AbstractBooleanSupplierKeyedMapLogic<TYPE_LOGIC,TYPE_OUTPUT> extends AbstractKeyedMapLogic<BooleanSupplier,TYPE_LOGIC,TYPE_OUTPUT>
The base class of the BooleanSupplierKeyedMapLogic implementations.
Since:
2.4.0
  • Constructor Details

    • AbstractBooleanSupplierKeyedMapLogic

      @SafeVarargs public AbstractBooleanSupplierKeyedMapLogic(Map<BooleanSupplier,TYPE_LOGIC> map, TYPE_LOGIC defaultLogic, Map.Entry<BooleanSupplier,TYPE_LOGIC>... logics)
      A standard way of creating an instance of AbstractBooleanSupplierKeyedMapLogic.
      Parameters:
      map - The map that holds the keyed map logics.
      defaultLogic - The default logic if no matching key was found.
      logics - The logics that will be stored to the map parameter.
  • Method Details

    • get

      public abstract Optional<TYPE_OUTPUT> get()
      Returns the calculated output.
      Returns:
      The typed output.