Class AbstractSourceBuilder<V,SOURCE,PARAM,RESULT extends ConfigValue<V>,SELF extends AbstractSourceBuilder<V,SOURCE,PARAM,RESULT,SELF>>
- java.lang.Object
-
- cc.carm.lib.configuration.builder.AbstractConfigBuilder<TYPE,RESULT,ConfigurationHolder<?>,SELF>
-
- cc.carm.lib.configuration.builder.CommonConfigBuilder<V,RESULT,SELF>
-
- cc.carm.lib.configuration.builder.impl.AbstractSourceBuilder<V,SOURCE,PARAM,RESULT,SELF>
-
- Direct Known Subclasses:
SourceListBuilder
,SourceMapBuilder
,SourceValueBuilder
public abstract class AbstractSourceBuilder<V,SOURCE,PARAM,RESULT extends ConfigValue<V>,SELF extends AbstractSourceBuilder<V,SOURCE,PARAM,RESULT,SELF>> extends CommonConfigBuilder<V,RESULT,SELF>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull ValueType<PARAM>
paramType
protected @NotNull ValueType<SOURCE>
sourceType
protected @NotNull ValueHandler<SOURCE,PARAM>
valueParser
protected @NotNull ValueHandler<PARAM,SOURCE>
valueSerializer
-
Fields inherited from class cc.carm.lib.configuration.builder.AbstractConfigBuilder
defaultValueSupplier, holder, initializer, path, providerClass, type
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSourceBuilder(@NotNull ValueType<V> type, @NotNull ValueType<SOURCE> sourceType, @NotNull ValueType<PARAM> paramType, @NotNull ValueHandler<SOURCE,PARAM> parser, @NotNull ValueHandler<PARAM,SOURCE> serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValueAdapter<PARAM>
buildAdapter()
SELF
parse(@NotNull DataFunction<SOURCE,PARAM> parser)
SELF
parse(@NotNull ValueHandler<SOURCE,PARAM> parser)
SELF
serialize(@NotNull DataFunction<PARAM,SOURCE> serializer)
SELF
serialize(@NotNull ValueHandler<PARAM,SOURCE> serializer)
-
Methods inherited from class cc.carm.lib.configuration.builder.AbstractConfigBuilder
append, append, build, buildManifest, defaults, defaults, holder, initializer, meta, meta, path, self, type
-
-
-
-
Field Detail
-
valueParser
@NotNull protected @NotNull ValueHandler<SOURCE,PARAM> valueParser
-
valueSerializer
@NotNull protected @NotNull ValueHandler<PARAM,SOURCE> valueSerializer
-
-
Method Detail
-
parse
@NotNull public SELF parse(@NotNull @NotNull DataFunction<SOURCE,PARAM> parser)
-
parse
@NotNull public SELF parse(@NotNull @NotNull ValueHandler<SOURCE,PARAM> parser)
-
serialize
@NotNull public SELF serialize(@NotNull @NotNull ValueHandler<PARAM,SOURCE> serializer)
-
serialize
@NotNull public SELF serialize(@NotNull @NotNull DataFunction<PARAM,SOURCE> serializer)
-
buildAdapter
protected ValueAdapter<PARAM> buildAdapter()
-
-