Interface Setting<T>

Type Parameters:
T -
All Known Implementing Classes:
ConsoleSetting, ConsoleWidth, LogLevel, Prefixes, QueryPrefix, SaveHistory, ShowPrefix, WorkDir

public interface Setting<T>
Setting interface
Author:
Bart Hanssens
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Clear setting
    get()
    Get the current value for this setting
    Get the initial value
    Get the parameter type
    void
    set(T value)
    Set the value for this setting
  • Method Details Link icon

    • getType Link icon

      Class getType()
      Get the parameter type
      Returns:
      class type
    • getInitValue Link icon

      T getInitValue()
      Get the initial value
      Returns:
      T
    • get Link icon

      T get()
      Get the current value for this setting
      Returns:
      value
    • set Link icon

      void set(T value) throws IllegalArgumentException
      Set the value for this setting
      Parameters:
      value -
      Throws:
      IllegalArgumentException
    • clear Link icon

      void clear()
      Clear setting