V
- The generic valuepublic class MutableConvertibleMultiValuesMap<V> extends ConvertibleMultiValuesMap<V> implements MutableConvertibleMultiValues<V>
MutableConvertibleMultiValues
that operates against a backing LinkedHashMap
.EMPTY, values
EMPTY
Constructor and Description |
---|
MutableConvertibleMultiValuesMap()
Default constructor.
|
MutableConvertibleMultiValuesMap(java.util.Map<java.lang.CharSequence,java.util.List<V>> values) |
MutableConvertibleMultiValuesMap(java.util.Map<java.lang.CharSequence,java.util.List<V>> values,
ConversionService<?> conversionService) |
Modifier and Type | Method and Description |
---|---|
MutableConvertibleMultiValues<V> |
add(java.lang.CharSequence key,
V value)
Adds a value for the given key.
|
MutableConvertibleMultiValues<V> |
clear()
Clear all values.
|
MutableConvertibleValues<java.util.List<V>> |
put(java.lang.CharSequence key,
java.util.List<V> value)
Insert a value for the given key and value.
|
MutableConvertibleValues<java.util.List<V>> |
remove(java.lang.CharSequence key)
Remove a value for the given key.
|
MutableConvertibleMultiValues<V> |
remove(java.lang.CharSequence key,
V value)
Remove the given value from the given key.
|
protected java.util.Map<java.lang.CharSequence,java.util.List<V>> |
wrapValues(java.util.Map<java.lang.CharSequence,java.util.List<V>> values)
Wraps the values (by default in an unmodifiable map).
|
get, get, getAll, names, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, forEach, forEachValue, get, getAll, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator, of
of, putAll, putAll
asMap, asMap, asProperties, contains, getValue, getValueType, names, subMap, subMap, subMap, values
get, get, get, get
public MutableConvertibleMultiValuesMap()
public MutableConvertibleMultiValuesMap(java.util.Map<java.lang.CharSequence,java.util.List<V>> values)
values
- The valuespublic MutableConvertibleMultiValuesMap(java.util.Map<java.lang.CharSequence,java.util.List<V>> values, ConversionService<?> conversionService)
values
- The valuesconversionService
- The conversion servicepublic MutableConvertibleMultiValues<V> add(java.lang.CharSequence key, V value)
MutableConvertibleMultiValues
add
in interface MutableConvertibleMultiValues<V>
key
- The keyvalue
- The valuepublic MutableConvertibleValues<java.util.List<V>> put(java.lang.CharSequence key, java.util.List<V> value)
MutableConvertibleValues
put
in interface MutableConvertibleValues<java.util.List<V>>
key
- The keyvalue
- The valuepublic MutableConvertibleValues<java.util.List<V>> remove(java.lang.CharSequence key)
MutableConvertibleValues
remove
in interface MutableConvertibleValues<java.util.List<V>>
key
- The keypublic MutableConvertibleMultiValues<V> remove(java.lang.CharSequence key, V value)
MutableConvertibleMultiValues
remove
in interface MutableConvertibleMultiValues<V>
key
- The keyvalue
- The valuepublic MutableConvertibleMultiValues<V> clear()
MutableConvertibleMultiValues
clear
in interface MutableConvertibleMultiValues<V>
clear
in interface MutableConvertibleValues<java.util.List<V>>
protected java.util.Map<java.lang.CharSequence,java.util.List<V>> wrapValues(java.util.Map<java.lang.CharSequence,java.util.List<V>> values)
ConvertibleMultiValuesMap
wrapValues
in class ConvertibleMultiValuesMap<V>
values
- The values