@Deprecated public abstract class DecisionBook<T,U> extends RuleBook<T>
RuleBook
that stores a return type linked to all the rules in the DecisionBook.Constructor and Description |
---|
DecisionBook()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addRule(Decision<T,U> rule)
Deprecated.
The addRule() method allows a rule to be added to the DecisionBook in the abstract defineRules
method.
|
U |
getResult()
Deprecated.
The getResult() method allows the result of the DecisionBook rules execution to be retrieved.
|
DecisionBook<T,U> |
withDefaultResult(U result)
Deprecated.
The withDefaultResult method allows a default result value to be specified.
|
public final DecisionBook<T,U> withDefaultResult(U result)
result
- the initial value of the stored resultpublic void addRule(Decision<T,U> rule)
rule
- the Decision rule to be added to the DecisionBookpublic U getResult()