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(Map<CharSequence,List<V>> values) |
MutableConvertibleMultiValuesMap(Map<CharSequence,List<V>> values,
ConversionService<?> conversionService) |
Modifier and Type | Method and Description |
---|---|
MutableConvertibleMultiValues<V> |
add(CharSequence key,
V value)
Adds a value for the given key.
|
MutableConvertibleMultiValues<V> |
clear()
Clear all values.
|
MutableConvertibleValues<List<V>> |
put(CharSequence key,
List<V> value)
Insert a value for the given key and value.
|
MutableConvertibleValues<List<V>> |
remove(CharSequence key)
Remove a value for the given key.
|
MutableConvertibleMultiValues<V> |
remove(CharSequence key,
V value)
Remove the given value from the given key.
|
protected Map<CharSequence,List<V>> |
wrapValues(Map<CharSequence,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, isEmpty, iterator, of
of, putAll, putAll
asMap, asMap, asProperties, contains, getValueType, names, subMap, subMap, subMap, values
get, get, get, get
forEach, spliterator
public MutableConvertibleMultiValuesMap()
public MutableConvertibleMultiValuesMap(Map<CharSequence,List<V>> values)
values
- The valuespublic MutableConvertibleMultiValuesMap(Map<CharSequence,List<V>> values, ConversionService<?> conversionService)
values
- The valuesconversionService
- The conversion servicepublic MutableConvertibleMultiValues<V> add(CharSequence key, V value)
MutableConvertibleMultiValues
add
in interface MutableConvertibleMultiValues<V>
key
- The keyvalue
- The valuepublic MutableConvertibleValues<List<V>> put(CharSequence key, List<V> value)
MutableConvertibleValues
put
in interface MutableConvertibleValues<List<V>>
key
- The keyvalue
- The valuepublic MutableConvertibleValues<List<V>> remove(CharSequence key)
MutableConvertibleValues
remove
in interface MutableConvertibleValues<List<V>>
key
- The keypublic MutableConvertibleMultiValues<V> remove(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<List<V>>
protected Map<CharSequence,List<V>> wrapValues(Map<CharSequence,List<V>> values)
ConvertibleMultiValuesMap
wrapValues
in class ConvertibleMultiValuesMap<V>
values
- The values