Interface Configuration<T>

Type Parameters:
T - type of saved object

@NonExtendable public interface Configuration<T>
Saves and retrieves configuration object
Since:
0.3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Resets current value of this configuration
    get()
    Gets current value, can be inherited from another configuration
    boolean
    Check if current configuration object contains custom value
    void
    set(T value)
    Sets new value for that configuration
  • Method Details

    • get

      T get()
      Gets current value, can be inherited from another configuration
      Returns:
      Current value
    • isSet

      boolean isSet()
      Check if current configuration object contains custom value
      Returns:
      true if value is set
    • set

      void set(T value)
      Sets new value for that configuration
      Parameters:
      value - Value you wish to save
    • clear

      void clear()
      Resets current value of this configuration