Class RuleGroup.Builder
java.lang.Object
cloud.opencode.base.rules.model.RuleGroup.Builder
- Enclosing class:
RuleGroup
Builder for RuleGroup
RuleGroup的构建器
- Since:
- JDK 25, opencode-base-rules V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionAdds a rule to the group 向组添加规则Adds multiple rules to the group 向组添加多个规则Adds multiple rules to the group 向组添加多个规则build()Builds the RuleGroup 构建RuleGroupdescription(String description) Sets the description 设置描述priority(int priority) Sets the priority 设置优先级
-
Method Details
-
description
Sets the description 设置描述- Parameters:
description- the description | 描述- Returns:
- this builder | 此构建器
-
priority
Sets the priority 设置优先级- Parameters:
priority- the priority | 优先级- Returns:
- this builder | 此构建器
-
addRule
Adds a rule to the group 向组添加规则- Parameters:
rule- the rule | 规则- Returns:
- this builder | 此构建器
-
addRules
Adds multiple rules to the group 向组添加多个规则- Parameters:
rules- the rules | 规则- Returns:
- this builder | 此构建器
-
addRules
Adds multiple rules to the group 向组添加多个规则- Parameters:
rules- the rules | 规则- Returns:
- this builder | 此构建器
-
build
-