Package io.micronaut.core.convert.value
Interface MutableConvertibleValues<V>
- Type Parameters:
V
- The generic value
- All Superinterfaces:
ConversionServiceProvider
,ConvertibleValues<V>
,Iterable<Map.Entry<String,
,V>> ValueResolver<CharSequence>
- All Known Subinterfaces:
BeanElementVisitorContext
,MutableConvertibleMultiValues<V>
,VisitorContext
,WebSocketSession
- All Known Implementing Classes:
GroovyVisitorContext
,JavaVisitorContext
,MutableConvertibleMultiValuesMap
,MutableConvertibleValuesMap
,NettyWebSocketSession
A
ConvertibleValues
that is mutable.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptionclear()
Clear all values.static <T> MutableConvertibleValues<T>
of
(Map<? extends CharSequence, T> values) Creates a newConvertibleValues
for the values.put
(CharSequence key, V value) Insert a value for the given key and value.default MutableConvertibleValues<V>
putAll
(ConvertibleValues<V> values) Put all the values from the given values into this values instance.default MutableConvertibleValues<V>
putAll
(Map<CharSequence, V> values) Put all the values from the given map into this values instance.remove
(CharSequence key) Remove a value for the given key.Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, forEach, getConversionService, getValue, getValueType, isEmpty, iterator, names, subMap, subMap, subMap, values
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get, get
-
Method Details
-
put
Insert a value for the given key and value.- Parameters:
key
- The keyvalue
- The value- Returns:
- This values instance
-
remove
Remove a value for the given key.- Parameters:
key
- The key- Returns:
- This values instance
-
clear
MutableConvertibleValues<V> clear()Clear all values.- Returns:
- This values instance
-
putAll
Put all the values from the given map into this values instance.- Parameters:
values
- The values- Returns:
- This values instance
-
putAll
Put all the values from the given values into this values instance.- Parameters:
values
- The values- Returns:
- This values instance
-
of
Creates a newConvertibleValues
for the values.- Type Parameters:
T
- The target generic type- Parameters:
values
- A map of values- Returns:
- The values
-