public abstract class SimpleConfig<T> extends java.lang.Object implements JsonConfigurableInterface<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.file.Path |
configPath |
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleConfig(java.lang.Class<T> type,
java.nio.file.Path configPath) |
| Modifier and Type | Method and Description |
|---|---|
T |
getConfig() |
T |
getDefaultConfig() |
java.nio.file.Path |
getPath() |
java.lang.reflect.Type |
getType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateConfigIfNotExists, generateConfigIfNotExists, loadConfig, loadConfig, loadConfig, resetConfig, resetConfig, saveConfig, saveConfig, saveConfig, setConfigprotected SimpleConfig(java.lang.Class<T> type, java.nio.file.Path configPath)
public T getConfig()
getConfig in interface JsonConfigurableInterface<T>public T getDefaultConfig()
getDefaultConfig in interface JsonConfigurableInterface<T>public java.nio.file.Path getPath()
getPath in interface JsonConfigurableInterface<T>public java.lang.reflect.Type getType()
getType in interface JsonConfigurableInterface<T>