public class ConfigurationValueImpl extends Object implements ConfigurationValue
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurationValueImpl(String value) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Boolean> |
asBoolean()
Retrieves the property value as a boolean.
|
Optional<Integer> |
asInt()
Retrieves the property value as an integer.
|
Optional<Long> |
asLong()
Retrieves the property value as a long.
|
Optional<String> |
asString()
Retrieves the property value as a string.
|
protected ConfigurationValueImpl(String value)
public Optional<String> asString()
ConfigurationValueasString in interface ConfigurationValuepublic Optional<Integer> asInt()
ConfigurationValueasInt in interface ConfigurationValuepublic Optional<Long> asLong()
ConfigurationValueasLong in interface ConfigurationValuepublic Optional<Boolean> asBoolean()
ConfigurationValueasBoolean in interface ConfigurationValueCopyright © 2014. All rights reserved.