| Constructor and Description |
|---|
ConfigImpl(ConfigStrings provider) |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getBigDecimal(String key) |
BigDecimal |
getBigDecimal(String key,
BigDecimal defaultValue) |
BigDecimal |
getBigDecimalOrThrow(String key) |
boolean |
getBooleanOrFalse(String key)
Read a boolean value from the configuration.
|
boolean |
getBooleanOrThrow(String key) |
boolean |
getBooleanOrTrue(String key)
Read a boolean value from the configuration.
|
Double |
getDouble(String key) |
double |
getDouble(String key,
double defaultValue) |
double |
getDoubleOrThrow(String key) |
Float |
getFloat(String key) |
float |
getFloat(String key,
float defaultValue) |
float |
getFloatOrThrow(String key) |
Integer |
getInteger(String key) |
int |
getInteger(String key,
int defaultValue) |
int |
getIntegerOrThrow(String key) |
Long |
getLong(String key) |
long |
getLong(String key,
long defaultValue) |
long |
getLongOrThrow(String key) |
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
String |
getStringOrThrow(String key) |
public ConfigImpl(ConfigStrings provider)
public String getStringOrThrow(@Nonnull String key)
getStringOrThrow in interface Configpublic Integer getInteger(@Nonnull String key)
getInteger in interface Configpublic int getInteger(@Nonnull String key, int defaultValue)
getInteger in interface Configpublic int getIntegerOrThrow(@Nonnull String key)
getIntegerOrThrow in interface Configpublic long getLongOrThrow(@Nonnull String key)
getLongOrThrow in interface Configpublic float getFloatOrThrow(@Nonnull String key)
getFloatOrThrow in interface Configpublic double getDoubleOrThrow(@Nonnull String key)
getDoubleOrThrow in interface Config@Nullable public BigDecimal getBigDecimal(@Nonnull String key)
getBigDecimal in interface Config@Nonnull public BigDecimal getBigDecimal(String key, @Nonnull BigDecimal defaultValue)
getBigDecimal in interface Config@Nonnull public BigDecimal getBigDecimalOrThrow(String key)
getBigDecimalOrThrow in interface Configpublic boolean getBooleanOrFalse(@Nonnull String key)
ConfiggetBooleanOrFalse in interface Configpublic boolean getBooleanOrTrue(@Nonnull String key)
ConfiggetBooleanOrTrue in interface Configpublic boolean getBooleanOrThrow(@Nonnull String key)
getBooleanOrThrow in interface ConfigCopyright © 2016. All rights reserved.