Class ConfigFileDataStorage<K,V>
java.lang.Object
me.hsgamer.topper.storage.flat.core.FlatDataStorage<me.hsgamer.hscore.config.Config,K,V>
me.hsgamer.topper.storage.flat.configfile.ConfigFileDataStorage<K,V>
- All Implemented Interfaces:
DataStorage<K,V>
public abstract class ConfigFileDataStorage<K,V>
extends FlatDataStorage<me.hsgamer.hscore.config.Config,K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.hsgamer.topper.storage.core.DataStorage
DataStorage.Modifier<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionConfigFileDataStorage(File baseFolder, String name, FlatValueConverter<K> keyConverter, FlatValueConverter<V> valueConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract me.hsgamer.hscore.config.Configprotected abstract StringgetConfigName(String name) loadFromFile(me.hsgamer.hscore.config.Config file) loadFromFile(me.hsgamer.hscore.config.Config file, String key) protected voidremoveValue(me.hsgamer.hscore.config.Config file, String key) protected voidsaveFile(me.hsgamer.hscore.config.Config file) protected me.hsgamer.hscore.config.Configprotected voidMethods inherited from class me.hsgamer.topper.storage.flat.core.FlatDataStorage
load, load, modify, onRegister, onUnregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.topper.storage.core.DataStorage
keys
-
Constructor Details
-
ConfigFileDataStorage
public ConfigFileDataStorage(File baseFolder, String name, FlatValueConverter<K> keyConverter, FlatValueConverter<V> valueConverter)
-
-
Method Details
-
getConfig
-
getConfigName
-
setupFile
- Specified by:
setupFilein classFlatDataStorage<me.hsgamer.hscore.config.Config,K, V>
-
loadFromFile
- Specified by:
loadFromFilein classFlatDataStorage<me.hsgamer.hscore.config.Config,K, V>
-
loadFromFile
- Specified by:
loadFromFilein classFlatDataStorage<me.hsgamer.hscore.config.Config,K, V>
-
saveFile
protected void saveFile(me.hsgamer.hscore.config.Config file) - Specified by:
saveFilein classFlatDataStorage<me.hsgamer.hscore.config.Config,K, V>
-
setValue
- Specified by:
setValuein classFlatDataStorage<me.hsgamer.hscore.config.Config,K, V>
-
removeValue
- Specified by:
removeValuein classFlatDataStorage<me.hsgamer.hscore.config.Config,K, V>
-