Package me.hsgamer.hscore.config.gson
Class GsonConfig
java.lang.Object
me.hsgamer.hscore.config.gson.GsonConfig
- All Implemented Interfaces:
Config
The
Config implementation for Gson-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionGsonConfig(File file) Create a new configGsonConfig(File file, com.google.gson.Gson gson) Create a new config -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()get(PathString path, Object def) getName()com.google.gson.JsonObjectgetValues(PathString path, boolean deep) booleanisNormalizable(Object object) voidreload()voidsave()voidset(PathString path, Object value) voidsetup()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.config.Config
addDefault, addDefaults, contains, get, getComment, getComment, getInstance, getInstance, getKeys, getKeys, getNormalized, getNormalized, getNormalizedValues, getNormalizedValues, getValues, isInstance, normalizeObject, remove, setComment, setComment
-
Constructor Details
-
GsonConfig
Create a new config- Parameters:
file- the filegson- the Gson instance
-
GsonConfig
Create a new config- Parameters:
file- the file
-
-
Method Details
-
getOriginal
public com.google.gson.JsonObject getOriginal()- Specified by:
getOriginalin interfaceConfig
-
get
-
set
-
clear
public void clear() -
getName
-
getValues
-
setup
public void setup() -
save
public void save() -
reload
public void reload() -
normalize
-
isNormalizable
- Specified by:
isNormalizablein interfaceConfig
-