Module xyz.ronella.casual.trivial
Package xyz.ronella.trivial.handy
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
-
Field Summary
Fields inherited from class xyz.ronella.trivial.handy.AbstractKeyedMapLogic
defaultLogic, internalMap -
Constructor Summary
ConstructorsConstructorDescriptionAbstractBooleanSupplierKeyedMapLogic(Map<BooleanSupplier, TYPE_LOGIC> map, TYPE_LOGIC defaultLogic, Map.Entry<BooleanSupplier, TYPE_LOGIC>... logics) A standard way of creating an instance of AbstractBooleanSupplierKeyedMapLogic. -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<TYPE_OUTPUT>get()Returns the calculated output.Methods inherited from class xyz.ronella.trivial.handy.AbstractKeyedMapLogic
getDefaultLogic, handleDefaultLogicConstructorArgument
-
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
Returns the calculated output.- Returns:
- The typed output.
-