Skip navigation links

Package ch.awae.utils.logic

The Logic system provides an intuitive extension to the BooleanSupplier that supports boolean operators for more expressive solutions.

See: Description

Package ch.awae.utils.logic Description

The 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.
Since:
awaeUtils 0.0.6
Author:
Andreas Wälchli
Skip navigation links

Copyright © 2018. All Rights Reserved.