Перейти к основному содержанию

Config

Index

Classes

ConfigValue

ConfigValue:

Class representing config value with it's path withing Config object.

constructor

get

  • get<T>(): T

  • Type parameters

    • T = string | number | boolean | Config | JSONArray

    Returns T

    Config value, result is the same as the result of Config.get call.

set

  • set<T>(value: T): void
  • Sets config value and saves configuration file.


    Type parameters

    • T = string | number | boolean | JSONArray | JSONObject

    Parameters

    • value: T

      value, may be org.json.JSONArray instance, org.json.JSONObject instance or raw data type.

    Returns void

Page Options