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

    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

    • getType

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

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

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

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

      void clear()
      Clear setting