Package io.micronaut.core.convert.value
Interface MutableConvertibleValues<V>
-
- Type Parameters:
V
- The generic value
- All Superinterfaces:
ConvertibleValues<V>
,java.lang.Iterable<java.util.Map.Entry<java.lang.String,V>>
,ValueResolver<java.lang.CharSequence>
- All Known Subinterfaces:
MutableConvertibleMultiValues<V>
- All Known Implementing Classes:
MutableConvertibleMultiValuesMap
,MutableConvertibleValuesMap
public interface MutableConvertibleValues<V> extends ConvertibleValues<V>
AConvertibleValues
that is mutable.- Since:
- 1.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MutableConvertibleValues<V>
clear()
Clear all values.static <T> MutableConvertibleValues<T>
of(java.util.Map<? extends java.lang.CharSequence,T> values)
Creates a newConvertibleValues
for the values.MutableConvertibleValues<V>
put(java.lang.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(java.util.Map<java.lang.CharSequence,V> values)
Put all the values from the given map into this values instance.MutableConvertibleValues<V>
remove(java.lang.CharSequence key)
Remove a value for the given key.-
Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, forEach, getValue, getValueType, isEmpty, iterator, names, subMap, subMap, subMap, values
-
Methods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get, get
-
-
-
-
Method Detail
-
put
MutableConvertibleValues<V> put(java.lang.CharSequence key, @Nullable V value)
Insert a value for the given key and value.- Parameters:
key
- The keyvalue
- The value- Returns:
- This values instance
-
remove
MutableConvertibleValues<V> remove(java.lang.CharSequence key)
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
default MutableConvertibleValues<V> putAll(java.util.Map<java.lang.CharSequence,V> values)
Put all the values from the given map into this values instance.- Parameters:
values
- The values- Returns:
- This values instance
-
putAll
default MutableConvertibleValues<V> putAll(ConvertibleValues<V> values)
Put all the values from the given values into this values instance.- Parameters:
values
- The values- Returns:
- This values instance
-
of
static <T> MutableConvertibleValues<T> of(java.util.Map<? extends java.lang.CharSequence,T> values)
Creates a newConvertibleValues
for the values.- Type Parameters:
T
- The target generic type- Parameters:
values
- A map of values- Returns:
- The values
-
-