Package me.hsgamer.hscore.config.path
Class StickyConfigPath<T>
java.lang.Object
me.hsgamer.hscore.common.CachedValue<T>
me.hsgamer.hscore.config.path.StickyConfigPath<T>
- Type Parameters:
T- the type of the value
- All Implemented Interfaces:
ConfigPath<T>
An
ConfigPath which stores the value for later uses-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.hsgamer.hscore.common.CachedValue
clearCache, getValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.config.path.ConfigPath
getValue, migrateConfig, setAndSave, setAndSave
-
Constructor Details
-
StickyConfigPath
Create a config path- Parameters:
originalPath- the original config path
-
-
Method Details
-
generate
- Specified by:
generatein classCachedValue<T>
-
reload
public void reload()Description copied from interface:ConfigPathReload the path- Specified by:
reloadin interfaceConfigPath<T>
-
setValue
Description copied from interface:ConfigPathSet the value- Specified by:
setValuein interfaceConfigPath<T>- Parameters:
value- the value
-
getValue
Description copied from interface:ConfigPathGet the value from the config. This is used to get the value from multiple configs.- Specified by:
getValuein interfaceConfigPath<T>- Parameters:
config- the config- Returns:
- the value
-
setValue
Description copied from interface:ConfigPathSet the value to the config. This is used to set the value to multiple configs.- Specified by:
setValuein interfaceConfigPath<T>- Parameters:
value- the valueconfig- the config
-
getPath
Description copied from interface:ConfigPathGet the path to the value- Specified by:
getPathin interfaceConfigPath<T>- Returns:
- the path
-
getConfig
Description copied from interface:ConfigPathGet the config- Specified by:
getConfigin interfaceConfigPath<T>- Returns:
- the config
-
setConfig
Description copied from interface:ConfigPathSet the config.- Specified by:
setConfigin interfaceConfigPath<T>- Parameters:
config- the config
-