Package mars.settings

Class StringSetting

java.lang.Object
mars.settings.StringSetting

public class StringSetting extends Object
Class representing a persistent string setting and its current value.
  • Method Details

    • getKey

      public String getKey()
      Get the key used to identify this setting in Preferences.
      Returns:
      The string key for this setting.
    • get

      public String get()
      Get the value currently stored in this setting.
      Returns:
      The string value for this setting.
    • set

      public void set(String value)
      Set the value of this setting, updating persistent storage.
      Parameters:
      value - The new string value for this setting.
    • getDefault

      public String getDefault()
      Get the default value for this setting.
      Returns:
      The default string value for this setting.
    • setDefault

      public void setDefault(String value)
      Set the default value for this setting without updating the current value.
      Parameters:
      value - The new default string value for this setting.
    • setNonPersistent

      public void setNonPersistent(String value)
      Set the value of this setting without updating persistent storage.
      Parameters:
      value - The new string value for this setting.