public final class PropertyValue extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static PropertyValueBuilder |
builder(String key,
String source)
Creates a new builder instance.
|
static PropertyValueBuilder |
builder(String key,
String value,
String source)
Creates a new builder instance.
|
boolean |
equals(Object o) |
String |
getKey()
The requested key.
|
Map<String,String> |
getMetaEntries()
Creates a full configuration map for this key, value pair and all its meta context data.
|
String |
getMetaEntry(String key)
Access the given key from this value.
|
String |
getSource()
The source.
|
String |
getValue()
The value.
|
int |
hashCode() |
static Map<String,PropertyValue> |
map(Map<String,String> config,
String source)
Maps a map of
Map<String,String> to a Map<String,PropertyValue>. |
static Map<String,PropertyValue> |
map(Map<String,String> config,
String source,
Map<String,String> metaData)
Maps a map of
Map<String,String> to a Map<String,PropertyValue>. |
static PropertyValue |
of(String key,
String value,
String source)
Creates a new PropertyValue without any metadata..
|
PropertyValueBuilder |
toBuilder()
Creates a new builder instance based on this item.
|
String |
toString() |
public String getKey()
null.public String getSource()
null.PropertySource.getName().public String getValue()
PropertySource.get(String).public Map<String,String> getMetaEntries()
public static PropertyValueBuilder builder(String key, String source)
key - the key, not null.source - the source, typically the name of the PropertySource
providing the value, not null.public static PropertyValueBuilder builder(String key, String value, String source)
key - the key, not null.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.null,
if the value passed is null..public String getMetaEntry(String key)
key - the key, not null.null.public PropertyValueBuilder toBuilder()
public static Map<String,PropertyValue> map(Map<String,String> config, String source)
Map<String,String> to a Map<String,PropertyValue>.config - the String based map, not null.source - the source name, not null.public static Map<String,PropertyValue> map(Map<String,String> config, String source, Map<String,String> metaData)
Map<String,String> to a Map<String,PropertyValue>.config - the String based map, not null.source - the source name, not null.metaData - additional metadata, not null.Copyright © 2014–2017 Apache Software Foundation. All rights reserved.