Class SectionValueBuilder<V>
- java.lang.Object
-
- cc.carm.lib.configuration.core.builder.AbstractConfigBuilder<T,B,ConfigurationProvider<?>>
-
- cc.carm.lib.configuration.core.builder.CommonConfigBuilder<V,SectionValueBuilder<V>>
-
- cc.carm.lib.configuration.core.builder.value.SectionValueBuilder<V>
-
public class SectionValueBuilder<V> extends CommonConfigBuilder<V,SectionValueBuilder<V>>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull ConfigValueParser<ConfigurationWrapper<?>,V>
parser
protected @NotNull ConfigDataFunction<V,? extends java.util.Map<java.lang.String,java.lang.Object>>
serializer
protected @NotNull java.lang.Class<V>
valueClass
-
Fields inherited from class cc.carm.lib.configuration.core.builder.AbstractConfigBuilder
defaultValue, headerComments, inlineComment, path, provider, providerClass
-
-
Constructor Summary
Constructors Constructor Description SectionValueBuilder(@NotNull java.lang.Class<V> valueClass, @NotNull ConfigValueParser<ConfigurationWrapper<?>,V> parser, @NotNull ConfigDataFunction<V,? extends java.util.Map<java.lang.String,java.lang.Object>> serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ConfiguredSection<V>
build()
protected @NotNull SectionValueBuilder<V>
getThis()
@NotNull SectionValueBuilder<V>
parseValue(ConfigDataFunction<ConfigurationWrapper<?>,V> valueParser)
@NotNull SectionValueBuilder<V>
parseValue(ConfigValueParser<ConfigurationWrapper<?>,V> valueParser)
@NotNull SectionValueBuilder<V>
serializeValue(ConfigDataFunction<V,? extends java.util.Map<java.lang.String,java.lang.Object>> serializer)
-
Methods inherited from class cc.carm.lib.configuration.core.builder.AbstractConfigBuilder
buildManifest, comments, defaults, defaults, from, headerComments, headerComments, inlineComment, path
-
-
-
-
Field Detail
-
valueClass
@NotNull protected final @NotNull java.lang.Class<V> valueClass
-
parser
@NotNull protected @NotNull ConfigValueParser<ConfigurationWrapper<?>,V> parser
-
serializer
@NotNull protected @NotNull ConfigDataFunction<V,? extends java.util.Map<java.lang.String,java.lang.Object>> serializer
-
-
Constructor Detail
-
SectionValueBuilder
public SectionValueBuilder(@NotNull @NotNull java.lang.Class<V> valueClass, @NotNull @NotNull ConfigValueParser<ConfigurationWrapper<?>,V> parser, @NotNull @NotNull ConfigDataFunction<V,? extends java.util.Map<java.lang.String,java.lang.Object>> serializer)
-
-
Method Detail
-
getThis
@NotNull protected @NotNull SectionValueBuilder<V> getThis()
- Specified by:
getThis
in classAbstractConfigBuilder<V,SectionValueBuilder<V>,ConfigurationProvider<?>>
-
parseValue
@NotNull public @NotNull SectionValueBuilder<V> parseValue(ConfigDataFunction<ConfigurationWrapper<?>,V> valueParser)
-
parseValue
@NotNull public @NotNull SectionValueBuilder<V> parseValue(ConfigValueParser<ConfigurationWrapper<?>,V> valueParser)
-
serializeValue
@NotNull public @NotNull SectionValueBuilder<V> serializeValue(ConfigDataFunction<V,? extends java.util.Map<java.lang.String,java.lang.Object>> serializer)
-
build
@NotNull public @NotNull ConfiguredSection<V> build()
- Specified by:
build
in classAbstractConfigBuilder<V,SectionValueBuilder<V>,ConfigurationProvider<?>>
-
-