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>paramTypeprotected @NotNull ValueType<SOURCE>sourceTypeprotected @NotNull ValueHandler<SOURCE,PARAM>valueParserprotected @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 protectedAbstractSourceBuilder(@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()SELFparse(@NotNull DataFunction<SOURCE,PARAM> parser)SELFparse(@NotNull ValueHandler<SOURCE,PARAM> parser)SELFserialize(@NotNull DataFunction<PARAM,SOURCE> serializer)SELFserialize(@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()
-
-