Class FlatDataStorage<F,K,V>
java.lang.Object
me.hsgamer.topper.storage.flat.core.FlatDataStorage<F,K,V>
- All Implemented Interfaces:
DataStorage<K,V>
- Direct Known Subclasses:
ConfigFileDataStorage,PropertiesDataStorage
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.hsgamer.topper.storage.core.DataStorage
DataStorage.Modifier<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionFlatDataStorage(File baseFolder, String name, FlatValueConverter<K> keyConverter, FlatValueConverter<V> valueConverter) -
Method Summary
Modifier and TypeMethodDescriptionload()loadFromFile(F file) loadFromFile(F file, String key) modify()final voidfinal voidprotected abstract voidremoveValue(F file, String key) protected abstract voidprotected abstract Fprotected abstract voidMethods 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
-
FlatDataStorage
public FlatDataStorage(File baseFolder, String name, FlatValueConverter<K> keyConverter, FlatValueConverter<V> valueConverter)
-
-
Method Details
-
setupFile
-
loadFromFile
-
loadFromFile
-
saveFile
-
setValue
-
removeValue
-
onRegister
public final void onRegister()- Specified by:
onRegisterin interfaceDataStorage<F,K>
-
onUnregister
public final void onUnregister()- Specified by:
onUnregisterin interfaceDataStorage<F,K>
-
load
- Specified by:
loadin interfaceDataStorage<F,K>
-
load
- Specified by:
loadin interfaceDataStorage<F,K>
-
modify
- Specified by:
modifyin interfaceDataStorage<F,K>
-