Package org.rusherhack.client.api.config
Class JsonConfiguration
java.lang.Object
org.rusherhack.client.api.config.Configuration
org.rusherhack.client.api.config.JsonConfiguration
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.google.gson.Gson
The GSON instance used to serialize json config filesFields inherited from class org.rusherhack.client.api.config.Configuration
CONFIG_DIRECTORY, logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonConfiguration
createConfiguration
(String name) static JsonConfiguration
createConfiguration
(String parentDirectory, String name) void
read
(org.rusherhack.core.serialize.ISerializable<?> serializable) void
write
(org.rusherhack.core.serialize.ISerializable<?> serializable) Methods inherited from class org.rusherhack.client.api.config.Configuration
createTempFile, getFile
-
Field Details
-
GSON
public static final com.google.gson.Gson GSONThe GSON instance used to serialize json config files
-
-
Constructor Details
-
JsonConfiguration
-
-
Method Details
-
createConfiguration
-
createConfiguration
-
write
public void write(org.rusherhack.core.serialize.ISerializable<?> serializable) - Specified by:
write
in classConfiguration
-
read
public void read(org.rusherhack.core.serialize.ISerializable<?> serializable) - Specified by:
read
in classConfiguration
-