public interface IConfigSource
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete the config file.
|
void |
disable() |
boolean |
fileExists()
Check if valid .json file exists.
|
<T> Optional<T> |
get(String key) |
<T> Optional<T> |
get(String key,
Class<T> asType) |
boolean |
has(String key) |
boolean |
isSection(String key) |
Set<String> |
keys() |
void |
put(String key,
Object value) |
void |
reload() |
void |
saveAll() |
static String[] |
toPath(String key) |
boolean fileExists()
boolean has(String key)
boolean isSection(String key)
void reload()
void saveAll()
void disable()
void delete()