Modifier and Type | Method and Description |
---|---|
ValueMap |
build()
Builds the new value map.
|
Object |
get(String valueName)
Returns the value with the given name.
|
boolean |
hasValue(String valueName)
Checks whether the builder contains a value with the given name.
|
boolean |
hasValue(ValueAccessor<?> valueAccessor)
Checks whether the builder contains a value with the given name.
|
ValueMap.Builder |
put(String valueName,
Object value)
Adds the given entry to the map to be built.
|
<V> ValueMap.Builder |
put(ValueAccessor<V> valueAccessor,
V value)
Adds the given entry to the map to be built.
|
ValueMap.Builder |
putAll(Map<String,Object> values)
Adds the given values to the map to be built.
|
void |
remove(String valueName)
Removes the value with the given name.
|
public <V> ValueMap.Builder put(ValueAccessor<V> valueAccessor, V value)
Adds the given entry to the map to be built. As part of adding the entry, the value is serialized via valueName.
V
- the expected transient type of the valuevalueAccessor
- the name of the valuevalue
- the value of the valuepublic ValueMap.Builder put(String valueName, Object value)
Adds the given entry to the map to be built. The value is stored as-is.
valueName
- the name of the valuevalue
- the value of the valuepublic ValueMap.Builder putAll(Map<String,Object> values)
Adds the given values to the map to be built. The value is stored as-is.
values
- the map containing the values to be addedpublic boolean hasValue(String valueName)
Checks whether the builder contains a value with the given name.
valueName
- the value name to be checkedtrue
if the value is presentpublic boolean hasValue(ValueAccessor<?> valueAccessor)
Checks whether the builder contains a value with the given name.
valueAccessor
- the value accessor to be checkedtrue
if the value is presentpublic Object get(String valueName)
Returns the value with the given name.
valueName
- the value name to be retrievedpublic void remove(String valueName)
Removes the value with the given name.
valueName
- the value name to be removedpublic ValueMap build()
Builds the new value map.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.