java.lang.Object
xyz.ronella.trivial.handy.Conditions
A collection of logic implementations.
- Since:
- 2019-11-30
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidand(List<BooleanSupplier> conditions, Sink truthLogic) Accepts multiple conditions if all conditions are true it will pass control to the truthLogic.static voidand(List<BooleanSupplier> conditions, Sink truthLogic, Sink falseLogic) Accepts multiple conditions if all condition are true it will pass control to the truthLogic otherwise the falseLogic will take it.static voidor(List<BooleanSupplier> conditions, Sink truthLogic) Accepts multiple conditions if at least one condition is true it will pass control to the truthLogic.static voidor(List<BooleanSupplier> conditions, Sink truthLogic, Sink falseLogic) Accepts multiple conditions if at least one condition is true it will pass control to the truthLogic otherwise the falseLogic will take it.
-
Method Details
-
or
Accepts multiple conditions if at least one condition is true it will pass control to the truthLogic.- Parameters:
conditions- A list of Boolean suppliers.truthLogic- Must have the truthLogic to perform if at least one is evaluated to true.
-
or
Accepts multiple conditions if at least one condition is true it will pass control to the truthLogic otherwise the falseLogic will take it.- Parameters:
conditions- A list of Boolean suppliers.truthLogic- Must have the truthLogic to perform if at least one is evaluated to true.falseLogic- Must have the falseLogic to perform if nothing is evaluated to true.
-
and
Accepts multiple conditions if all conditions are true it will pass control to the truthLogic.- Parameters:
conditions- A list of Boolean suppliers.truthLogic- Must have the truthLogic to perform if all are evaluated to true.
-
and
Accepts multiple conditions if all condition are true it will pass control to the truthLogic otherwise the falseLogic will take it.- Parameters:
conditions- A list of Boolean suppliers.truthLogic- Must have the truthLogic to perform if all are evaluated to true.falseLogic- Must have the falseLogic to perform if at least one is evaluated to false.
-