Package com.esprit
Class Config
java.lang.Object
com.esprit.Config
Config class for the RAKCHA JavaFX desktop application.
- Since:
- 1.0.0
- Version:
- 1.0.0
- Author:
- RAKCHA Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the value.static Config
Retrieves the Instance value.getOrDefault
(String key, String defaultValue) Retrieves the OrDefault value.private void
private void
saveConfig
(Map<String, Object> configToSave) void
Sets the value.
-
Field Details
-
LOGGER
-
CONFIG_PATH
- See Also:
-
instance
-
config
-
-
Constructor Details
-
Config
private Config()
-
-
Method Details
-
getInstance
Retrieves the Instance value.- Returns:
- the Instance value
-
get
Retrieves the value.- Returns:
- the value
-
getOrDefault
Retrieves the OrDefault value.- Returns:
- the OrDefault value
-
set
Sets the value.- Parameters:
set
- the value to set
-
loadConfig
-
createDefaultConfig
-
saveConfig
private void saveConfig() -
saveConfig
-