Wrapper for a Remote Config parameter value, with methods to get it as different types.
| abstract boolean |
asBoolean()
Gets the value as a
boolean. |
| abstract byte[] |
asByteArray()
Gets the value as a
byte[]. |
| abstract double |
asDouble()
Gets the value as a
double. |
| abstract long |
asLong()
Gets the value as a
long. |
| abstract String |
asString()
Gets the value as a
String. |
| abstract int |
getSource()
Indicates at which source this value came from.
|
Gets the value as a boolean.
boolean representation of this parameter value.| IllegalArgumentException | If the value cannot be converted to a boolean.
|
|---|
Gets the value as a byte[].
byte[] representation of this parameter value.
Gets the value as a double.
double representation of this parameter value.| IllegalArgumentException | If the value cannot be converted to a double.
|
|---|
Gets the value as a long.
long representation of this parameter value.| IllegalArgumentException | If the value cannot be converted to a long.
|
|---|
Gets the value as a String.
String representation of this parameter value.
Indicates at which source this value came from.
VALUE_SOURCE_REMOTE if the value was retrieved from the
server, VALUE_SOURCE_DEFAULT if the value was set as a
default, or VALUE_SOURCE_STATIC if no value was found and a
static default value was returned instead.