Package io.micronaut.core.convert.value
Interface MutableConvertibleMultiValues<V>
- Type Parameters:
V
- The generic value
- All Superinterfaces:
ConversionServiceProvider
,ConvertibleMultiValues<V>
,ConvertibleValues<List<V>>
,Iterable<Map.Entry<String,
,List<V>>> MutableConvertibleValues<List<V>>
,ValueResolver<CharSequence>
- All Known Implementing Classes:
MutableConvertibleMultiValuesMap
public interface MutableConvertibleMultiValues<V>
extends ConvertibleMultiValues<V>, MutableConvertibleValues<List<V>>
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptionadd
(CharSequence key, V value) Adds a value for the given key.clear()
Clear all values.remove
(CharSequence key, V value) Remove the given value from the given key.Methods inherited from interface io.micronaut.core.convert.value.ConvertibleMultiValues
forEach, forEachValue, get, getAll, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator
Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, getConversionService, getValue, getValueType, names, subMap, subMap, subMap, values
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.micronaut.core.convert.value.MutableConvertibleValues
put, putAll, putAll, remove
Methods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get, get
-
Method Details
-
add
Adds a value for the given key. Note that this method will not remove items currently associated with the key.- Parameters:
key
- The keyvalue
- The value- Returns:
- This instance
-
remove
Remove the given value from the given key.- Parameters:
key
- The keyvalue
- The value- Returns:
- This instance
-
clear
MutableConvertibleMultiValues<V> clear()Clear all values.- Specified by:
clear
in interfaceMutableConvertibleValues<V>
- Returns:
- This instance
-