java.lang.Object
xyz.ronella.trivial.handy.LogicMapper<TYPE_OUTPUT>
- Type Parameters:
TYPE_OUTPUT- Specifies the actual type of the output method.
Creates a map of conditions and logic where all the conditions that evaluated to true will perform its
corresponding logic.
- Since:
- 2019-12-01
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA class that can build an instance of LogicMapper. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the collection of logicstatic <TYPE_OUTPUT>
LogicMapper.LogicMapperBuilder<TYPE_OUTPUT>Build an instance of LogicMapper.output()Executes the collection of logic with return the finalLogic output.
-
Method Details
-
output
Executes the collection of logic with return the finalLogic output.- Returns:
- An instance of TYPE_OUTPUT
- Since:
- 1.3.0
-
execute
public void execute()Executes the collection of logic -
getBuilder
Build an instance of LogicMapper.- Type Parameters:
TYPE_OUTPUT- Identifies the type of the output method.- Returns:
- An instance of LogicMapper.
-