Package septogeddon.pluginquery.api
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 Summary
Modifier and TypeMethodDescriptionParse from safe-config objectname()
The configuration key/pathstatic QueryConfigurationKey
<Boolean> newBoolean
(String key) Create new boolean parserstatic QueryConfigurationKey
<Number> Create new number parserstatic QueryConfigurationKey
<String> Create new string parserstatic QueryConfigurationKey
<List<String>> newStringList
(String key) Create new list of string parserConvert to safe-config object
-
Method Details
-
newBoolean
Create new boolean parser- Parameters:
key
- the key- Returns:
- the created configuration key
-
newStringList
Create new list of string parser- Parameters:
key
- the key- Returns:
- the created configuration key
-
newString
Create new string parser- Parameters:
key
- the key- Returns:
- the created configuration key
-
newNumber
Create new number parser- Parameters:
key
- the key- Returns:
- the created configuration key
-
name
String name()The configuration key/path- Returns:
-
get
Parse from safe-config object- Parameters:
from
-- Returns:
-
set
Convert to safe-config object- Parameters:
t
-- Returns:
-