Class LogicMapper<TYPE_OUTPUT>

java.lang.Object
xyz.ronella.trivial.handy.LogicMapper<TYPE_OUTPUT>
Type Parameters:
TYPE_OUTPUT - Specifies the actual type of the output method.

public final class LogicMapper<TYPE_OUTPUT> extends Object
Creates a map of conditions and logic where all the conditions that evaluated to true will perform its corresponding logic.
Since:
2019-12-01
  • Method Details

    • output

      public Optional<TYPE_OUTPUT> 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

      public static <TYPE_OUTPUT> LogicMapper.LogicMapperBuilder<TYPE_OUTPUT> getBuilder()
      Build an instance of LogicMapper.
      Type Parameters:
      TYPE_OUTPUT - Identifies the type of the output method.
      Returns:
      An instance of LogicMapper.