类 TextContents.Builder
java.lang.Object
cc.carm.lib.configuration.value.text.data.TextContents.Builder
- 封闭类:
- TextContents
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Add lines to the contentsAdd lines to the contentsbuild()Add optional lines to the contentsAdd optional lines to the contentsSet the lines of the contentsSet the lines of the contents
-
字段详细资料
-
lines
-
optional
-
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
add
Add lines to the contents- 参数:
lines- lines to add- 返回:
- this builder
-
add
Add lines to the contents- 参数:
lines- lines to add- 返回:
- this builder
-
set
Set the lines of the contents- 参数:
lines- lines to set- 返回:
- this builder
-
set
Set the lines of the contents- 参数:
lines- lines to set- 返回:
- this builder
-
optional
public TextContents.Builder optional(@NotNull @NotNull String key, @NotNull @NotNull String... lines) Add optional lines to the contents- 参数:
key- key of the optional lineslines- lines to add- 返回:
- this builder
-
optional
public TextContents.Builder optional(@NotNull @NotNull String key, @NotNull @NotNull Iterable<String> lines) Add optional lines to the contents- 参数:
key- key of the optional lineslines- lines to add- 返回:
- this builder
-
build
- 返回:
- The built TextContents
-