Package pro.gravit.launcher.config
Class SimpleConfig<T>
- java.lang.Object
-
- pro.gravit.launcher.config.SimpleConfig<T>
-
- All Implemented Interfaces:
JsonConfigurableInterface<T>
public abstract class SimpleConfig<T> extends java.lang.Object implements JsonConfigurableInterface<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.file.PathconfigPath
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleConfig(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()java.nio.file.PathgetPath()java.lang.reflect.TypegetType()-
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, setConfig, toJsonString, toJsonString
-
-
-
-
Constructor Detail
-
SimpleConfig
protected SimpleConfig(java.lang.Class<T> type, java.nio.file.Path configPath)
-
-
Method Detail
-
getConfig
public T getConfig()
- Specified by:
getConfigin interfaceJsonConfigurableInterface<T>
-
getDefaultConfig
public T getDefaultConfig()
- Specified by:
getDefaultConfigin interfaceJsonConfigurableInterface<T>
-
getPath
public java.nio.file.Path getPath()
- Specified by:
getPathin interfaceJsonConfigurableInterface<T>
-
getType
public java.lang.reflect.Type getType()
- Specified by:
getTypein interfaceJsonConfigurableInterface<T>
-
-