public class Config extends ConfigNode
Based on https://github.com/Rsl1122/Abstract-Plugin-Framework/blob/72e221d3571ef200727713d10d3684c51e9f469d/AbstractPluginFramework/api/src/main/java/com/djrapitops/plugin/config/Config.java
childNodes, comment, key, nodeOrder, parent, value
Constructor and Description |
---|
Config(java.io.File configFile) |
Config(java.io.File configFile,
ConfigNode defaults) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.nio.file.Path |
getConfigFilePath() |
int |
hashCode() |
void |
read() |
void |
save()
Find the root node and save.
|
addChild, addNode, contains, copyAll, copyMissing, getBoolean, getBoolean, getChildren, getComment, getInteger, getInteger, getKey, getLong, getLong, getNode, getNodeDepth, getNodeOrder, getParent, getString, getString, getStringList, getStringList, getStringMap, isLeafNode, moveChild, remove, removeChild, removeNode, reorder, set, set, setComment, sort, toString, updateParent
public Config(java.io.File configFile)
public Config(java.io.File configFile, ConfigNode defaults)
public void read() throws java.io.IOException
java.io.IOException
public void save() throws java.io.IOException
ConfigNode
save
in class ConfigNode
java.io.IOException
- If the save can not be performed.public boolean equals(java.lang.Object o)
equals
in class ConfigNode
public int hashCode()
hashCode
in class ConfigNode
public java.nio.file.Path getConfigFilePath()