类 TextContents.Builder

java.lang.Object
cc.carm.lib.configuration.value.text.data.TextContents.Builder
封闭类:
TextContents

public static class TextContents.Builder extends Object
  • 字段详细资料

  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • add

      public TextContents.Builder add(@NotNull @NotNull String... lines)
      Add lines to the contents
      参数:
      lines - lines to add
      返回:
      this builder
    • add

      public TextContents.Builder add(@NotNull @NotNull Iterable<String> lines)
      Add lines to the contents
      参数:
      lines - lines to add
      返回:
      this builder
    • set

      public TextContents.Builder set(@NotNull @NotNull String... lines)
      Set the lines of the contents
      参数:
      lines - lines to set
      返回:
      this builder
    • set

      public TextContents.Builder set(@NotNull @NotNull Iterable<String> lines)
      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 lines
      lines - 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 lines
      lines - lines to add
      返回:
      this builder
    • build

      public TextContents build()
      返回:
      The built TextContents