Package com.esprit

Class Config

java.lang.Object
com.esprit.Config

public class Config extends Object
Config class for the RAKCHA JavaFX desktop application.
Since:
1.0.0
Version:
1.0.0
Author:
RAKCHA Team
  • Field Details

  • Constructor Details

    • Config

      private Config()
  • Method Details

    • getInstance

      public static Config getInstance()
      Retrieves the Instance value.
      Returns:
      the Instance value
    • get

      public String get(String key)
      Retrieves the value.
      Returns:
      the value
    • getOrDefault

      public String getOrDefault(String key, String defaultValue)
      Retrieves the OrDefault value.
      Returns:
      the OrDefault value
    • set

      public void set(String key, String value)
      Sets the value.
      Parameters:
      set - the value to set
    • loadConfig

      private Map<String,Object> loadConfig()
    • createDefaultConfig

      private Map<String,Object> createDefaultConfig()
    • saveConfig

      private void saveConfig()
    • saveConfig

      private void saveConfig(Map<String,Object> configToSave)