/** * Returns a new {@link RuleBuilder} instance, set with the given {@link Rule} ID. */ public static RuleBuilder define(final String id) { return define().withId(id); }
ConfigurationRuleBuilderCustom addOtherwiseRule(RuleBuilder origin) { RuleBuilder rule = RuleBuilder.define(); /** * .otherwise() clauses should create a Rule that shares state with its origin. */ rule.contextMap = origin.contextMap; rules.add(rule); return new ConfigurationRuleBuilder(this, rule); }
/** * Returns a new {@link RuleBuilder} instance, set with the given {@link Rule} ID. */ public static RuleBuilder define(final String id) { return define().withId(id); }
ConfigurationRuleBuilderCustom addOtherwiseRule(RuleBuilder origin) { RuleBuilder rule = RuleBuilder.define(); /** * .otherwise() clauses should create a Rule that shares state with its origin. */ rule.contextMap = origin.contextMap; rules.add(rule); return new ConfigurationRuleBuilder(this, rule); }
/** * Add a new fluent {@link Rule}. */ @Override public ConfigurationRuleBuilderCustom addRule() { RuleBuilder rule = RuleBuilder.define(); setDefaultLocation(rule); rules.add(rule); return new ConfigurationRuleBuilder(this, rule); }
/** * Add a new fluent {@link Rule}. */ @Override public ConfigurationRuleBuilderCustom addRule() { RuleBuilder rule = RuleBuilder.define(); setDefaultLocation(rule); rules.add(rule); return new ConfigurationRuleBuilder(this, rule); }