Interface ConfigMigration.ConfigAccess

Enclosing class:
ConfigMigration

public static interface ConfigMigration.ConfigAccess
Minimal view of RuneLite's ConfigManager for one config group, so tests need no client.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String key)
    The value this client holds (a ConfigManager's in-memory copy), or null when the key is not stored.
    default String
    The value saved in the settings file right now, or null when the file does not hold the key: what every client launched from now on will read.
    void
    set(String key, String value)
     
    void
     
  • Method Details

    • get

      String get(String key)
      The value this client holds (a ConfigManager's in-memory copy), or null when the key is not stored.
    • set

      void set(String key, String value)
    • unset

      void unset(String key)
    • saved

      default String saved(String key)
      The value saved in the settings file right now, or null when the file does not hold the key: what every client launched from now on will read. The migration decides from this (ConfigMigration). By default (no file to read) the client's own value.