Package | Description |
---|---|
org.dromara.hutool.core.text.placeholder |
字符串占位符相关封装,包括占位符替换变量和解析变量
|
Modifier and Type | Method and Description |
---|---|
static StrTemplate.Feature |
StrTemplate.Feature.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StrTemplate.Feature[] |
StrTemplate.Feature.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
BuilderChild |
StrTemplate.AbstractBuilder.addFeatures(StrTemplate.Feature... appendFeatures)
向 策略值 中 添加策略
同组内的策略是互斥的,一但设置为组内的某个新策略,就会清除之前的同组策略,仅保留新策略
|
BuilderChild |
StrTemplate.AbstractBuilder.features(StrTemplate.Feature... newFeatures)
设置 新的策略值,完全覆盖旧的策略值
|
static int |
StrTemplate.Feature.of(StrTemplate.Feature... features)
计算 总的策略值
|
BuilderChild |
StrTemplate.AbstractBuilder.removeFeatures(StrTemplate.Feature... removeFeatures)
从 策略值 中 删除策略
删除的策略 可以 不存在
|
static void |
StrTemplate.setGlobalFeatures(StrTemplate.Feature... globalFeatures)
设置 全局默认策略,一旦修改,对所有模板对象都生效
该值 是每个模板对象创建时的 策略初始值,因此,修改全局默认策略,不影响已经创建的模板对象
|
Copyright © 2025. All rights reserved.