| Constructor and Description |
|---|
ConfigWrapper(Config cfg) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBool(String key,
boolean defaultValue) |
double |
getDouble(String key,
double defaultValue) |
String |
getFormatted(String key) |
String |
getFormatted(String key,
Map<String,Object> parameters) |
String |
getFormatted(String key,
Object... parameters) |
int |
getInt(String key,
int defaultValue) |
long |
getLong(String key,
long defaultValue) |
boolean |
getRequiredBool(String key) |
double |
getRequiredDouble(String key) |
String |
getRequiredFormatted(String key) |
String |
getRequiredFormatted(String key,
Map<String,Object> parameters) |
String |
getRequiredFormatted(String key,
Object... parameters) |
int |
getRequiredInt(String key) |
long |
getRequiredLong(String key) |
String |
getRequiredString(String key) |
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
String[] |
getStringArray(String key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoNoValueExceptionpublic ConfigWrapper(Config cfg)
public String getRequiredString(String key) throws IllegalStateException
getRequiredString in interface ConfigIllegalStateExceptionpublic String[] getStringArray(String key)
getStringArray in interface Configpublic String getFormatted(String key)
getFormatted in interface Configpublic String getRequiredFormatted(String key) throws IllegalStateException
getRequiredFormatted in interface ConfigIllegalStateExceptionpublic String getFormatted(String key, Map<String,Object> parameters)
getFormatted in interface Configpublic String getRequiredFormatted(String key, Map<String,Object> parameters) throws IllegalStateException
getRequiredFormatted in interface ConfigIllegalStateExceptionpublic String getFormatted(String key, Object... parameters) throws IllegalStateException
getFormatted in interface ConfigIllegalStateExceptionpublic String getRequiredFormatted(String key, Object... parameters) throws IllegalStateException
getRequiredFormatted in interface ConfigIllegalStateExceptionpublic boolean getBool(String key, boolean defaultValue)
public boolean getRequiredBool(String key) throws IllegalStateException, BoolFormatException
getRequiredBool in interface ConfigIllegalStateExceptionBoolFormatExceptionpublic int getRequiredInt(String key) throws IllegalStateException, NumberFormatException
getRequiredInt in interface ConfigIllegalStateExceptionNumberFormatExceptionpublic long getLong(String key, long defaultValue)
public long getRequiredLong(String key) throws IllegalStateException, NumberFormatException
getRequiredLong in interface ConfigIllegalStateExceptionNumberFormatExceptionpublic double getDouble(String key, double defaultValue)
public double getRequiredDouble(String key) throws IllegalStateException, NumberFormatException
getRequiredDouble in interface ConfigIllegalStateExceptionNumberFormatExceptionCopyright © 2021. All rights reserved.