Package pro.gravit.launcher.config
Class SimpleConfigurable<T>
- java.lang.Object
-
- pro.gravit.launcher.config.JsonConfigurable<T>
-
- pro.gravit.launcher.config.SimpleConfigurable<T>
-
- All Implemented Interfaces:
JsonConfigurableInterface<T>
public class SimpleConfigurable<T> extends JsonConfigurable<T>
-
-
Field Summary
Fields Modifier and Type Field Description Tconfig-
Fields inherited from class pro.gravit.launcher.config.JsonConfigurable
configPath
-
-
Constructor Summary
Constructors Constructor Description SimpleConfigurable(java.lang.Class<T> type, java.nio.file.Path configPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetConfig()TgetDefaultConfig()voidsetConfig(T config)-
Methods inherited from class pro.gravit.launcher.config.JsonConfigurable
getPath, getType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pro.gravit.launcher.config.JsonConfigurableInterface
generateConfigIfNotExists, generateConfigIfNotExists, loadConfig, loadConfig, loadConfig, resetConfig, resetConfig, saveConfig, saveConfig, saveConfig, toJsonString, toJsonString
-
-
-
-
Field Detail
-
config
public T config
-
-
Constructor Detail
-
SimpleConfigurable
public SimpleConfigurable(java.lang.Class<T> type, java.nio.file.Path configPath)
-
-
Method Detail
-
getConfig
public T getConfig()
- Specified by:
getConfigin interfaceJsonConfigurableInterface<T>- Specified by:
getConfigin classJsonConfigurable<T>
-
setConfig
public void setConfig(T config)
- Specified by:
setConfigin interfaceJsonConfigurableInterface<T>- Specified by:
setConfigin classJsonConfigurable<T>
-
getDefaultConfig
public T getDefaultConfig()
- Specified by:
getDefaultConfigin interfaceJsonConfigurableInterface<T>- Specified by:
getDefaultConfigin classJsonConfigurable<T>
-
-