Record Class Explanation
java.lang.Object
java.lang.Record
cloud.opencode.base.rules.explain.Explanation
- Record Components:
summary- overall summary of the execution | 执行的总体摘要details- per-rule explanations | 每个规则的解释
Explanation - Complete Explanation of a Rule Engine Execution
解释 - 规则引擎执行的完整解释
Aggregates individual rule explanations with an overall summary.
聚合单个规则解释和总体摘要。
- Since:
- JDK 25, opencode-base-rules V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExplanation(String summary, List<RuleExplanation> details) Canonical constructor with validation 带验证的规范构造函数 -
Method Summary
Modifier and TypeMethodDescriptiondetails()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the count of rules that fired 返回已触发规则的数量final inthashCode()Returns a hash code value for this object.summary()Returns the value of thesummaryrecord component.toString()Returns a formatted multi-line string representation 返回格式化的多行字符串表示intReturns the total number of rules 返回规则的总数
-
Constructor Details
-
Explanation
Canonical constructor with validation 带验证的规范构造函数- Parameters:
summary- overall summary | 总体摘要details- per-rule explanations | 每个规则的解释
-
-
Method Details
-
firedCount
public int firedCount()Returns the count of rules that fired 返回已触发规则的数量- Returns:
- fired rule count | 已触发规则的数量
-
totalCount
public int totalCount()Returns the total number of rules 返回规则的总数- Returns:
- total rule count | 规则总数
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
summary
-
details
-