Class ConfigMapBuilder<M extends java.util.Map<K,V>,K,V>
- java.lang.Object
-
- cc.carm.lib.configuration.core.builder.map.ConfigMapBuilder<M,K,V>
-
public class ConfigMapBuilder<M extends java.util.Map<K,V>,K,V> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConfigMapBuilder(@NotNull java.util.function.Supplier<@NotNull M> supplier, @NotNull java.lang.Class<K> keyClass, @NotNull java.lang.Class<V> valueClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S> SourceMapBuilder<M,S,K,V>
from(@NotNull java.lang.Class<S> sourceClass)
<S> SourceMapBuilder<M,S,K,V>
from(@NotNull java.lang.Class<S> sourceClass, @NotNull ConfigDataFunction<S,V> valueParser, @NotNull ConfigDataFunction<V,S> valueSerializer)
SourceMapBuilder<M,java.lang.Object,K,V>
fromObject()
SourceMapBuilder<M,java.lang.Object,K,V>
fromObject(@NotNull ConfigDataFunction<java.lang.Object,V> valueParser)
SectionMapBuilder<M,K,V>
fromSection()
SourceMapBuilder<M,java.lang.String,K,V>
fromString()
SourceMapBuilder<M,java.lang.String,K,V>
fromString(@NotNull ConfigDataFunction<java.lang.String,V> valueParser)
<MAP extends java.util.Map<K,V>>
ConfigMapBuilder<MAP,K,V>supplier(@NotNull java.util.function.Supplier<MAP> supplier)
-
-
-
Method Detail
-
supplier
public <MAP extends java.util.Map<K,V>> ConfigMapBuilder<MAP,K,V> supplier(@NotNull @NotNull java.util.function.Supplier<MAP> supplier)
-
from
public <S> SourceMapBuilder<M,S,K,V> from(@NotNull @NotNull java.lang.Class<S> sourceClass, @NotNull @NotNull ConfigDataFunction<S,V> valueParser, @NotNull @NotNull ConfigDataFunction<V,S> valueSerializer)
-
from
public <S> SourceMapBuilder<M,S,K,V> from(@NotNull @NotNull java.lang.Class<S> sourceClass)
-
fromString
public SourceMapBuilder<M,java.lang.String,K,V> fromString(@NotNull @NotNull ConfigDataFunction<java.lang.String,V> valueParser)
-
fromString
public SourceMapBuilder<M,java.lang.String,K,V> fromString()
-
fromSection
public SectionMapBuilder<M,K,V> fromSection()
-
fromObject
public SourceMapBuilder<M,java.lang.Object,K,V> fromObject(@NotNull @NotNull ConfigDataFunction<java.lang.Object,V> valueParser)
-
fromObject
public SourceMapBuilder<M,java.lang.Object,K,V> fromObject()
-
-