Class PropertiesDataStorage<K,V>
java.lang.Object
me.hsgamer.topper.storage.flat.core.FlatDataStorage<PropertiesDataStorage.PropertyFile,K,V>
me.hsgamer.topper.storage.flat.properties.PropertiesDataStorage<K,V>
- All Implemented Interfaces:
DataStorage<K,
V>
public class PropertiesDataStorage<K,V>
extends FlatDataStorage<PropertiesDataStorage.PropertyFile,K,V>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface me.hsgamer.topper.storage.core.DataStorage
DataStorage.Modifier<K,
V> -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesDataStorage
(File baseFolder, String name, FlatValueConverter<K> keyConverter, FlatValueConverter<V> valueConverter) -
Method Summary
Modifier and TypeMethodDescriptionloadFromFile
(PropertiesDataStorage.PropertyFile file, String key) protected void
removeValue
(PropertiesDataStorage.PropertyFile file, String key) protected void
protected PropertiesDataStorage.PropertyFile
protected void
setValue
(PropertiesDataStorage.PropertyFile file, String key, String value) Methods inherited from class me.hsgamer.topper.storage.flat.core.FlatDataStorage
load, load, modify, onRegister, onUnregister
-
Constructor Details
-
PropertiesDataStorage
public PropertiesDataStorage(File baseFolder, String name, FlatValueConverter<K> keyConverter, FlatValueConverter<V> valueConverter)
-
-
Method Details
-
setupFile
- Specified by:
setupFile
in classFlatDataStorage<PropertiesDataStorage.PropertyFile,
K, V>
-
loadFromFile
- Specified by:
loadFromFile
in classFlatDataStorage<PropertiesDataStorage.PropertyFile,
K, V>
-
loadFromFile
- Specified by:
loadFromFile
in classFlatDataStorage<PropertiesDataStorage.PropertyFile,
K, V>
-
saveFile
- Specified by:
saveFile
in classFlatDataStorage<PropertiesDataStorage.PropertyFile,
K, V>
-
setValue
- Specified by:
setValue
in classFlatDataStorage<PropertiesDataStorage.PropertyFile,
K, V>
-
removeValue
- Specified by:
removeValue
in classFlatDataStorage<PropertiesDataStorage.PropertyFile,
K, V>
-