public abstract class BaseConfig extends Object
| Constructor and Description |
|---|
BaseConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(boolean defaultValue,
String... keys)
Returns the boolean value
|
Boolean |
getBooleanValue(String... keys)
Returns the Wrapper boolean value
|
ConfigInfo |
getConfigInfo(String... keys)
Gets the
ConfigInfo |
int |
getInteger(int defaultValue,
String... keys)
Gets int value
|
Integer |
getIntegerValue(String... keys)
Gets the Wrapper Integer
|
abstract String |
getLevel()
The level of the configuration.
|
long |
getLong(long defaultValue,
String... keys)
Returns the long value
|
Long |
getLongValue(String... keys)
Returns the Wrapper long value
|
abstract Properties |
getProperties()
Gets all the properties.
|
String |
getString(String defaultValue,
String... keys)
Returns the String value
|
protected String |
getStringInternal(String key)
Gets the String value of provided key
|
String |
getValue(String... keys)
Gets value.
|
void |
setOverride(String key,
String value)
Overrides a property.
|
public ConfigInfo getConfigInfo(String... keys)
ConfigInfokeys - The keys in orderprotected String getStringInternal(String key)
key - The keypublic abstract String getLevel()
public abstract Properties getProperties()
public void setOverride(String key, String value)
key - the keyvalue - the valuepublic int getInteger(int defaultValue,
String... keys)
defaultValue - The default valuekeys - The keys in orderpublic String getString(String defaultValue, String... keys)
defaultValue - The default valuekeys - The keys in orderpublic String getValue(String... keys)
keys - the keyspublic Integer getIntegerValue(String... keys)
keys - The keys in orderpublic long getLong(long defaultValue,
String... keys)
defaultValue - The default valuekeys - The keys in orderpublic Long getLongValue(String... keys)
keys - The keys in orderpublic boolean getBoolean(boolean defaultValue,
String... keys)
defaultValue - The default valuekeys - The keys in orderCopyright © 2020. All rights reserved.