Logic system provides an intuitive
extension to the BooleanSupplier that supports
boolean operators for more expressive solutions.See: Description
| Interface | Description |
|---|---|
| Logic |
Base interface for composeable boolean logic operating on a
Model. |
| Class | Description |
|---|---|
| LogicCluster |
A LogicCluster allows the simultaneous evaluation and handling of up to 32
Logic instances. |
| LogicGroup |
Groups a list of
Logic instances. |
Logic system provides an intuitive
extension to the BooleanSupplier that supports
boolean operators for more expressive solutions.
Logic instances can be created directly
through lambda expressions or from a
BooleanSupplier through the use of
Logic.from(java.util.function.BooleanSupplier).
In addition to these extensions the logic system also provides support for
. These groups provide
support for counting-based evaluations (e.g. "true if exactly 3 members are
true") and group-based evaluations (e.g. "true if all members are true").
As an additional quality of life extension
are provided. Clusters
are similar to groups in that they group multiple logic instances but they
evaluate directly to an integer representation of the evaluation results of
all members. This allows the simultaneous evaluation of up to 32 logic
instances and to then handle their results in a single switch block.Copyright © 2018. All Rights Reserved.