Package io.micronaut.core.convert.value
Class MutableConvertibleValuesMap<V>
java.lang.Object
io.micronaut.core.convert.value.ConvertibleValuesMap<V>
io.micronaut.core.convert.value.MutableConvertibleValuesMap<V>
- Type Parameters:
V
- The generic value
- All Implemented Interfaces:
ConversionServiceAware
,ConversionServiceProvider
,ConvertibleValues<V>
,MutableConvertibleValues<V>
,ValueResolver<CharSequence>
,Iterable<Map.Entry<String,
V>>
public class MutableConvertibleValuesMap<V>
extends ConvertibleValuesMap<V>
implements MutableConvertibleValues<V>
Mutable version of
ConvertibleMultiValuesMap
.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from class io.micronaut.core.convert.value.ConvertibleValuesMap
map
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY
-
Constructor Summary
ConstructorDescriptionDefault constructor.MutableConvertibleValuesMap
(Map<? extends CharSequence, V> map) MutableConvertibleValuesMap
(Map<? extends CharSequence, V> map, ConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescriptionclear()
Clear all values.put
(CharSequence key, V value) Insert a value for the given key and value.remove
(CharSequence key) Remove a value for the given key.toString()
Methods inherited from class io.micronaut.core.convert.value.ConvertibleValuesMap
contains, empty, equals, get, getValue, hashCode, names, setConversionService, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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.convert.value.MutableConvertibleValues
putAll, putAll
Methods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get, get
-
Constructor Details
-
MutableConvertibleValuesMap
public MutableConvertibleValuesMap()Default constructor. -
MutableConvertibleValuesMap
- Parameters:
map
- The map
-
MutableConvertibleValuesMap
public MutableConvertibleValuesMap(Map<? extends CharSequence, V> map, ConversionService conversionService) - Parameters:
map
- The mapconversionService
- The conversion service
-
-
Method Details
-
toString
-
put
Description copied from interface:MutableConvertibleValues
Insert a value for the given key and value.- Specified by:
put
in interfaceMutableConvertibleValues<V>
- Parameters:
key
- The keyvalue
- The value- Returns:
- This values instance
-
remove
Description copied from interface:MutableConvertibleValues
Remove a value for the given key.- Specified by:
remove
in interfaceMutableConvertibleValues<V>
- Parameters:
key
- The key- Returns:
- This values instance
-
clear
Description copied from interface:MutableConvertibleValues
Clear all values.- Specified by:
clear
in interfaceMutableConvertibleValues<V>
- Returns:
- This values instance
-