public final class PropertyValue extends Object
Modifier and Type | Method and Description |
---|---|
static PropertyValueBuilder |
builder(String key,
String value,
String source)
Creates a new builder instance.
|
String |
get(String key)
Access the given key from this value.
|
Map<String,String> |
getConfigEntries()
Creates a full configuration map for this key, value pair and all its meta context data.
|
String |
getKey()
The requested key.
|
String |
getValue()
The value.
|
static PropertyValue |
of(String key,
String value,
String source)
Creates a new PropertyValue without any metadata..
|
public String getKey()
public String getValue()
PropertySource.get(String)
.public Map<String,String> getConfigEntries()
public static PropertyValueBuilder builder(String key, String value, String source)
key
- the key, not null.value
- the value.source
- the source, typically the name of the PropertySource
providing the value, not null.public static PropertyValue of(String key, String value, String source)
key
- the key, not null.value
- the value.source
- the source, typically the name of the PropertySource
providing the value, not null.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.