Interface QueryConfigurationKey<T>

Type Parameters:
T - The expected value

public interface QueryConfigurationKey<T>
Configuration key that holds key/path and also a serializer handler
Author:
Thito Yalasatria Sunarya
  • Method Details

    • newBoolean

      static QueryConfigurationKey<Boolean> newBoolean(String key)
      Create new boolean parser
      Parameters:
      key - the key
      Returns:
      the created configuration key
    • newStringList

      static QueryConfigurationKey<List<String>> newStringList(String key)
      Create new list of string parser
      Parameters:
      key - the key
      Returns:
      the created configuration key
    • newString

      static QueryConfigurationKey<String> newString(String key)
      Create new string parser
      Parameters:
      key - the key
      Returns:
      the created configuration key
    • newNumber

      static QueryConfigurationKey<Number> newNumber(String key)
      Create new number parser
      Parameters:
      key - the key
      Returns:
      the created configuration key
    • name

      String name()
      The configuration key/path
      Returns:
    • get

      T get(Object from)
      Parse from safe-config object
      Parameters:
      from -
      Returns:
    • set

      Object set(T t)
      Convert to safe-config object
      Parameters:
      t -
      Returns: