Interface RuleSetBuilder<C extends RuntimeContext<C>>

Type Parameters:
C - Represents the type of the RuntimeContext.

public interface RuleSetBuilder<C extends RuntimeContext<C>>
`RuleSetBuilder` is an interface intended for building and appending rules to the current runtime context.
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds and appends previously created rules to the current context.
    Creates a new unnamed rule.
    Creates a new rule with the provided name.
  • Method Details

    • newRule

      RuleBuilder<C> newRule(String name)
      Creates a new rule with the provided name.
      Parameters:
      name - rule name
      Returns:
      a new rule builder
    • newRule

      RuleBuilder<C> newRule()
      Creates a new unnamed rule.
      Returns:
      a new rule builder
    • build

      C build()

      Builds and appends previously created rules to the current context.

      Returns:
      the current context after appending new rules