Class ConfiguredText.Builder<MSG,RECEIVER,SELF extends ConfiguredText.Builder<MSG,RECEIVER,SELF>>
- java.lang.Object
-
- cc.carm.lib.configuration.builder.AbstractConfigBuilder<TextContents,TextContents,ConfiguredText<MSG,RECEIVER>,ConfigurationHolder<?>,SELF>
-
- cc.carm.lib.configuration.value.text.ConfiguredText.Builder<MSG,RECEIVER,SELF>
-
- Direct Known Subclasses:
ConfiguredText.StardardBuilder
- Enclosing class:
- ConfiguredText<MSG,RECEIVER>
public abstract static class ConfiguredText.Builder<MSG,RECEIVER,SELF extends ConfiguredText.Builder<MSG,RECEIVER,SELF>> extends AbstractConfigBuilder<TextContents,TextContents,ConfiguredText<MSG,RECEIVER>,ConfigurationHolder<?>,SELF>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull java.util.function.BiFunction<RECEIVER,java.lang.String,MSG>compilerprotected TextContents.BuilderdefaultBuilderprotected @NotNull java.util.function.BiConsumer<RECEIVER,java.util.List<MSG>>dispatcherprotected @NotNull java.lang.String[]paramsprotected @NotNull java.util.function.BiFunction<RECEIVER,java.lang.String,java.lang.String>parser-
Fields inherited from class cc.carm.lib.configuration.builder.AbstractConfigBuilder
defaultValueSupplier, holder, initializer, path, providerClass, type, valueValidator
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ConfiguredText<MSG,RECEIVER>build()SELFcompiler(@NotNull java.util.function.BiFunction<RECEIVER,java.lang.String,MSG> compiler)SELFdefaults(@NotNull java.lang.Iterable<java.lang.String> contents)SELFdefaults(@NotNull java.lang.String... contents)SELFdefaults(@NotNull java.util.function.Consumer<TextContents.Builder> consumer)SELFdispatcher(@NotNull java.util.function.BiConsumer<RECEIVER,java.util.List<MSG>> dispatcher)SELFoptional(@NotNull java.lang.String id, @NotNull java.lang.Iterable<java.lang.String> lines)SELFoptional(@NotNull java.lang.String id, @NotNull java.lang.String... lines)SELFparams(@NotNull java.lang.String... params)SELFparser(@NotNull java.util.function.BiFunction<RECEIVER,java.lang.String,java.lang.String> parser)
-
-
-
Field Detail
-
defaultBuilder
@NotNull protected TextContents.Builder defaultBuilder
-
params
@NotNull protected @NotNull java.lang.String[] params
-
parser
@NotNull protected @NotNull java.util.function.BiFunction<RECEIVER,java.lang.String,java.lang.String> parser
-
compiler
@NotNull protected @NotNull java.util.function.BiFunction<RECEIVER,java.lang.String,MSG> compiler
-
-
Method Detail
-
parser
@NotNull public SELF parser(@NotNull @NotNull java.util.function.BiFunction<RECEIVER,java.lang.String,java.lang.String> parser)
-
compiler
@NotNull public SELF compiler(@NotNull @NotNull java.util.function.BiFunction<RECEIVER,java.lang.String,MSG> compiler)
-
dispatcher
@NotNull public SELF dispatcher(@NotNull @NotNull java.util.function.BiConsumer<RECEIVER,java.util.List<MSG>> dispatcher)
-
params
@NotNull public SELF params(@NotNull @NotNull java.lang.String... params)
-
defaults
@NotNull public SELF defaults(@NotNull @NotNull java.util.function.Consumer<TextContents.Builder> consumer)
-
defaults
@NotNull public SELF defaults(@NotNull @NotNull java.lang.String... contents)
-
defaults
@NotNull public SELF defaults(@NotNull @NotNull java.lang.Iterable<java.lang.String> contents)
-
optional
@NotNull public SELF optional(@NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.String... lines)
-
optional
@NotNull public SELF optional(@NotNull @NotNull java.lang.String id, @NotNull @NotNull java.lang.Iterable<java.lang.String> lines)
-
build
@NotNull public @NotNull ConfiguredText<MSG,RECEIVER> build()
- Specified by:
buildin classAbstractConfigBuilder<TextContents,TextContents,ConfiguredText<MSG,RECEIVER>,ConfigurationHolder<?>,SELF extends ConfiguredText.Builder<MSG,RECEIVER,SELF>>
-
-