Class SectionListBuilder<V>
java.lang.Object
cc.carm.lib.configuration.builder.AbstractConfigBuilder<List<V>,V,ConfiguredList<V>,ConfigurationHolder<?>,SectionListBuilder<V>>
cc.carm.lib.configuration.builder.CommonConfigBuilder<List<V>,V,ConfiguredList<V>,SectionListBuilder<V>>
cc.carm.lib.configuration.builder.impl.AbstractSectionBuilder<List<V>,V,ConfiguredList<V>,SectionListBuilder<V>>
cc.carm.lib.configuration.builder.list.SectionListBuilder<V>
public class SectionListBuilder<V>
extends AbstractSectionBuilder<List<V>,V,ConfiguredList<V>,SectionListBuilder<V>>
-
Field Summary
FieldsFields inherited from class cc.carm.lib.configuration.builder.impl.AbstractSectionBuilder
paramType, parser, serializer
Fields inherited from class cc.carm.lib.configuration.builder.AbstractConfigBuilder
defaultValueSupplier, holder, initializer, path, providerClass, type, valueValidator
-
Constructor Summary
ConstructorsConstructorDescriptionSectionListBuilder
(@NotNull Supplier<? extends List<V>> constructor, @NotNull ValueType<V> paramType, @NotNull ValueHandler<ConfigureSection, V> parser, @NotNull ValueHandler<V, ? extends Map<String, Object>> serializer) -
Method Summary
Modifier and TypeMethodDescription@NotNull ConfiguredList
<V> build()
<LIST extends List<V>>
SectionListBuilder<V> construct
(LIST list) constructor
(@NotNull Supplier<? extends List<V>> constructor) final @NotNull SectionListBuilder
<V> defaults
(@NotNull Collection<V> values) final @NotNull SectionListBuilder
<V> final @NotNull SectionListBuilder
<V> protected @NotNull SectionListBuilder
<V> self()
Methods inherited from class cc.carm.lib.configuration.builder.impl.AbstractSectionBuilder
buildAdapter, parse, parse, serialize, serialize, serialize
-
Field Details
-
constructor
-
-
Constructor Details
-
SectionListBuilder
public SectionListBuilder(@NotNull @NotNull Supplier<? extends List<V>> constructor, @NotNull @NotNull ValueType<V> paramType, @NotNull @NotNull ValueHandler<ConfigureSection, V> parser, @NotNull @NotNull ValueHandler<V, ? extends Map<String, Object>> serializer)
-
-
Method Details
-
defaults
-
defaults
@NotNull public final @NotNull SectionListBuilder<V> defaults(@NotNull @NotNull Collection<V> values) -
defaults
@NotNull public final @NotNull SectionListBuilder<V> defaults(@NotNull @NotNull Consumer<List<V>> constructor) -
constructor
-
construct
-
self
- Specified by:
self
in classAbstractConfigBuilder<List<V>,
V, ConfiguredList<V>, ConfigurationHolder<?>, SectionListBuilder<V>>
-
build
- Specified by:
build
in classAbstractConfigBuilder<List<V>,
V, ConfiguredList<V>, ConfigurationHolder<?>, SectionListBuilder<V>>
-