1 package com
.github
.sebhoss
.reguloj
;
4 * Utility class which helps creating new {@link RuleEngine rule engines}.
8 public final class RuleEngines
{
11 * @return A rule engine which supports rule chaining.
13 public static <CONTEXT
extends Context
<?
>> RuleEngine
<CONTEXT
> chained() {
14 return new ChainedRuleEngine
<>();
18 * @return A rule engine which does not support rule chaining.
20 public static <CONTEXT
extends Context
<?
>> RuleEngine
<CONTEXT
> unchained() {
21 return new UnchainedRuleEngine
<>();
25 * @param maximumNumberOfRuns
26 * The maximum number of runs to perform.
27 * @return A rule engine which does not support rule chaining.
29 public static <CONTEXT
extends Context
<?
>> RuleEngine
<CONTEXT
> limited(final int maximumNumberOfRuns
) {
30 return new LimitedRuleEngine
<>(maximumNumberOfRuns
);
33 private RuleEngines() {