public interface UnlaunchDynamicConfig
Modifier and Type | Method | Description |
---|---|---|
boolean |
containsKey(String key) |
Checks if the configuration contains the specified key.
|
boolean |
getBoolean(String key) |
Gets a boolean associated with the given configuration key.
|
boolean |
getBoolean(String key,
boolean defaultValue) |
Gets a boolean associated with the given configuration key.
|
double |
getDouble(String key) |
Gets a double associated with the given configuration key.
|
double |
getDouble(String key,
double defaultValue) |
Gets a double associated with the given configuration key.
|
float |
getFloat(String key) |
Gets a float associated with the given configuration key.
|
float |
getFloat(String key,
float defaultValue) |
Gets a float associated with the given configuration key.
|
int |
getInt(String key) |
Gets a int associated with the given configuration key.
|
int |
getInt(String key,
int defaultValue) |
Gets a int associated with the given configuration key.
|
long |
getLong(String key) |
Gets a long associated with the given configuration key.
|
long |
getLong(String key,
long defaultValue) |
Gets a long associated with the given configuration key.
|
String |
getString(String key) |
Gets a string associated with the given configuration key.
|
String |
getString(String key,
String defaultValue) |
Gets a string associated with the given configuration key.
|
boolean |
isEmpty() |
Checks if the configuration is empty.
|
int |
size() |
Returns the number of keys stored in this configuration.
|
boolean containsKey(String key)
key
- the key whose presence in this configuration is to be testedtrue
if the configuration contains a value for this key, false
otherwiseboolean getBoolean(String key)
key
- The configuration key.UnlaunchConversionException
- is thrown if the key maps to an object that is not a Boolean.boolean getBoolean(String key, boolean defaultValue)
key
- The configuration key.defaultValue
- The default value.double getDouble(String key)
key
- The configuration key.UnlaunchConversionException
- is thrown if the key maps to an object that is not a DoubleNullPointerException
- if the specified key is nulldouble getDouble(String key, double defaultValue)
key
- The configuration key.defaultValue
- The default value.float getFloat(String key)
key
- The configuration key.UnlaunchConversionException
- is thrown if the key maps to an object that is not a Float.NullPointerException
- if the specified key is nullfloat getFloat(String key, float defaultValue)
key
- The configuration key.defaultValue
- The default value.int getInt(String key)
key
- The configuration key.UnlaunchConversionException
- is thrown if the key maps to an object that is not a Integer.NullPointerException
- if the specified key is nullint getInt(String key, int defaultValue)
key
- The configuration key.defaultValue
- The default value.long getLong(String key)
key
- The configuration key.UnlaunchConversionException
- is thrown if the key maps to an object that is not a Long.NullPointerException
- if the specified key is nulllong getLong(String key, long defaultValue)
key
- The configuration key.defaultValue
- The default value.String getString(String key)
key
- The configuration key.UnlaunchConversionException
- is thrown if the key maps to an object that is not a String.NullPointerException
- if the specified key is nullString getString(String key, String defaultValue)
key
- The configuration key.defaultValue
- The default value.boolean isEmpty()
true
if the configuration contains no property, false
otherwise.int size()
Copyright © 2020 CodeAhoy. All rights reserved.