Interface IMapValueBuilder<V>
- Type Parameters:
V
- Type of the map values.
- All Superinterfaces:
org.apache.commons.lang3.builder.Builder<Map<String,
,V>> IValueBuilder<Map<String,
V>>
A
IValueBuilder
for creating a map value.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionput
(String key, IValueCreator<V> creator) Sets the value in the map at the given key to the given value.default IMapValueBuilder<V>
Sets the value in the map at the given key to the given value.default IMapValueBuilder<V>
Applies the given value to this builder.Methods inherited from interface org.apache.commons.lang3.builder.Builder
build
-
Method Details
-
put
Sets the value in the map at the given key to the given value.- Parameters:
key
- A key in the map.creator
- Value creator for the value at the given key.- Returns:
- This value builder for chaining method calls.
-
put
Sets the value in the map at the given key to the given value.- Parameters:
key
- A key in the map.value
- The value at the given key.- Returns:
- This value builder for chaining method calls.
-
value
Description copied from interface:IValueBuilder
Applies the given value to this builder. Implementations are allowed to perform validity checks on the passed value and reject the given value or parts of it (in case of lists etc.) when they do not conform to the restrictions imposed by this builder.- Specified by:
value
in interfaceIValueBuilder<V>
- Parameters:
value
- Sets the value created by this builder.- Returns:
- This builder instance for chaining method calls.
-