Package io.micronaut.core.convert.value
Interface MutableConvertibleMultiValues<V>
-
- Type Parameters:
V- The generic value
- All Superinterfaces:
ConvertibleMultiValues<V>,ConvertibleValues<java.util.List<V>>,java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.util.List<V>>>,MutableConvertibleValues<java.util.List<V>>,ValueResolver<java.lang.CharSequence>
- All Known Implementing Classes:
MutableConvertibleMultiValuesMap
public interface MutableConvertibleMultiValues<V> extends ConvertibleMultiValues<V>, MutableConvertibleValues<java.util.List<V>>
- Since:
- 1.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MutableConvertibleMultiValues<V>add(java.lang.CharSequence key, V value)Adds a value for the given key.MutableConvertibleMultiValues<V>clear()Clear all values.MutableConvertibleMultiValues<V>remove(java.lang.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, getValue, getValueType, names, subMap, subMap, subMap, values
-
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 Detail
-
add
MutableConvertibleMultiValues<V> add(java.lang.CharSequence key, V value)
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
MutableConvertibleMultiValues<V> remove(java.lang.CharSequence key, V value)
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:
clearin interfaceMutableConvertibleValues<V>- Returns:
- This instance
-
-