Class MapConfigVariant<KEY,ENTRY>
java.lang.Object
com.beansgalaxy.backpacks.config.types.ConfigVariant<HashMap<String,ENTRY>>
com.beansgalaxy.backpacks.config.types.MapConfigVariant<KEY,ENTRY>
- All Implemented Interfaces:
ConfigLine
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.beansgalaxy.backpacks.config.types.ConfigVariant
comment, hasComment, name, value -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMapConfigVariant(String name, HashMap<String, ENTRY> defau, String comment, Function<KEY, String> keyEncode, Function<String, KEY> keyDecode, Function<ENTRY, String> entryEncode, Function<String, ENTRY> entryDecode, BiPredicate<String, ENTRY> validate, UnaryOperator<ENTRY> clamp, HashMap<String, ENTRY> example) -
Method Summary
Methods inherited from class com.beansgalaxy.backpacks.config.types.ConfigVariant
autoComment, get, getDefau, name, set, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.beansgalaxy.backpacks.config.types.ConfigLine
punctuate
-
Field Details
-
validate
-
clamp
-
-
Constructor Details
-
MapConfigVariant
protected MapConfigVariant(String name, HashMap<String, ENTRY> defau, String comment, Function<KEY, String> keyEncode, Function<String, KEY> keyDecode, Function<ENTRY, String> entryEncode, Function<String, ENTRY> entryDecode, BiPredicate<String, ENTRY> validate, UnaryOperator<ENTRY> clamp, HashMap<String, ENTRY> example)
-
-
Method Details
-
contains
-
get
-
put
-
comment
- Specified by:
commentin interfaceConfigLine- Overrides:
commentin classConfigVariant<HashMap<String,ENTRY>>
-
encode
-
decode
public void decode(com.google.gson.JsonObject jsonObject)
-