Record Class PlaceholderParser.NestedPlaceholderPart
java.lang.Object
java.lang.Record
cn.taketoday.util.PlaceholderParser.NestedPlaceholderPart
- 记录组件:
text- the raw text of the root placeholderkeyParts- the parts of the keydefaultParts- the parts of the fallback, if any
- 所有已实现的接口:
PlaceholderParser.Part
- 封闭类:
- PlaceholderParser
static record PlaceholderParser.NestedPlaceholderPart(String text, List<PlaceholderParser.Part> keyParts, List<PlaceholderParser.Part> defaultParts)
extends Record
implements PlaceholderParser.Part
A
PlaceholderParser.Part implementation that represents a single placeholder
containing nested placeholders.-
字段概要
字段修饰符和类型字段说明private final List<PlaceholderParser.Part>defaultParts记录组件的字段。private final List<PlaceholderParser.Part>keyParts记录组件的字段。private final Stringtext记录组件的字段。 -
构造器概要
构造器构造器说明NestedPlaceholderPart(String text, List<PlaceholderParser.Part> keyParts, List<PlaceholderParser.Part> defaultParts) 创建NestedPlaceholderPart记录的实例。 -
方法概要
修饰符和类型方法说明返回defaultParts记录组件的值。final boolean指示某个其他对象是否“等于”此对象。final inthashCode()返回此对象的哈希代码值。keyParts()返回keyParts记录组件的值。resolve(PlaceholderParser.PartResolutionContext resolutionContext) Resolve this part using the specifiedPlaceholderParser.PartResolutionContext.text()返回text记录组件的值。final StringtoString()返回此记录的字符串表示形式。
-
字段详细资料
-
text
text记录组件的字段。 -
keyParts
keyParts记录组件的字段。 -
defaultParts
defaultParts记录组件的字段。
-
-
构造器详细资料
-
NestedPlaceholderPart
NestedPlaceholderPart(String text, List<PlaceholderParser.Part> keyParts, @Nullable List<PlaceholderParser.Part> defaultParts) 创建NestedPlaceholderPart记录的实例。- 参数:
text-text记录组件的值keyParts-keyParts记录组件的值defaultParts-defaultParts记录组件的值
-
-
方法详细资料
-
resolve
从接口复制的说明:PlaceholderParser.PartResolve this part using the specifiedPlaceholderParser.PartResolutionContext.- 指定者:
resolve在接口中PlaceholderParser.Part- 参数:
resolutionContext- the context to use- 返回:
- the resolved part
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
text
返回text记录组件的值。- 指定者:
text在接口中PlaceholderParser.Part- 返回:
text记录组件的值
-
keyParts
返回keyParts记录组件的值。- 返回:
keyParts记录组件的值
-
defaultParts
返回defaultParts记录组件的值。- 返回:
defaultParts记录组件的值
-