Schnittstelle IConfig


public interface IConfig
  • Methodendetails

    • get

      <T> T get(String key, Class<T> clazz)
      Gets a object from the config
      Parameter:
      key - the key
      clazz - the class
      Gibt zurück:
      the object
    • addIfNotExists

      IConfig addIfNotExists(String key, Object value)
      Adds a value to the config if it does not exist
      Parameter:
      key - the key
      value - the value
      Gibt zurück:
      the config
    • set

      IConfig set(String key, Object value)
      Sets a value in the config
      Parameter:
      key - the key
      value - the value
      Gibt zurück:
      the config
    • load

      IConfig load()
      Loads the config
      Gibt zurück:
      the config
    • has

      boolean has(String key)
      Checks if the config has a key
      Parameter:
      key - the key
      Gibt zurück:
      true if the config has the key, false otherwise
    • save

      IConfig save()
      Saves the config
      Gibt zurück:
      the config
    • toString

      String toString()
      Converts the config to a string
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      the config as a string