-
- All Known Implementing Classes:
ConfigMap,ConfigWrapper,PropertyConfig,SecureConfig,SecureProps
public interface Config- Author:
- Loc Ha
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleangetBool(String key, boolean defaultValue)default doublegetDouble(String key, double defaultValue)default StringgetFormatted(String key)default StringgetFormatted(String key, Object... parameters)default StringgetFormatted(String key, Map<String,Object> parameters)default intgetInt(String key, int defaultValue)default longgetLong(String key, long defaultValue)default booleangetRequiredBool(String key)default doublegetRequiredDouble(String key)default StringgetRequiredFormatted(String key)default StringgetRequiredFormatted(String key, Object... parameters)default StringgetRequiredFormatted(String key, Map<String,Object> parameters)default intgetRequiredInt(String key)default longgetRequiredLong(String key)default StringgetRequiredString(String key)StringgetString(String key)default StringgetString(String key, String defaultValue)default String[]getStringArray(String key)static IllegalStateExceptiontoNoValueException(String key)
-
-
-
Method Detail
-
getRequiredString
default String getRequiredString(String key) throws IllegalStateException
- Throws:
IllegalStateException
-
getFormatted
default String getFormatted(String key) throws IllegalStateException
- Throws:
IllegalStateException
-
getRequiredFormatted
default String getRequiredFormatted(String key) throws IllegalStateException
- Throws:
IllegalStateException
-
getFormatted
default String getFormatted(String key, Map<String,Object> parameters) throws IllegalStateException
- Throws:
IllegalStateException
-
getRequiredFormatted
default String getRequiredFormatted(String key, Map<String,Object> parameters) throws IllegalStateException
- Throws:
IllegalStateException
-
getFormatted
default String getFormatted(String key, Object... parameters) throws IllegalStateException
- Throws:
IllegalStateException
-
getRequiredFormatted
default String getRequiredFormatted(String key, Object... parameters) throws IllegalStateException
- Throws:
IllegalStateException
-
getBool
default boolean getBool(String key, boolean defaultValue)
-
getRequiredBool
default boolean getRequiredBool(String key) throws IllegalStateException, BoolFormatException
-
getInt
default int getInt(String key, int defaultValue)
-
getRequiredInt
default int getRequiredInt(String key) throws IllegalStateException, NumberFormatException
-
getLong
default long getLong(String key, long defaultValue)
-
getRequiredLong
default long getRequiredLong(String key) throws IllegalStateException, NumberFormatException
-
getDouble
default double getDouble(String key, double defaultValue)
-
getRequiredDouble
default double getRequiredDouble(String key) throws IllegalStateException, NumberFormatException
-
toNoValueException
static IllegalStateException toNoValueException(String key)
-
-