- Typparameter:
K- the key typeV- the value element type
- Alle bekannten Implementierungsklassen:
LinkedMultiValueMap,MultiValueMapAdapter
Extension of the
Map interface that stores multiple values.-
Verschachtelte Klassen - Übersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidAdd the given single value to the current list of values for the given key.voidAdd all the values of the given list to the current list of values for the given key.voidaddAll(MultiValueMap<K, V> values) Add all the values of the givenMultiValueMapto the current values.Von Schnittstelle geerbte Methoden java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methodendetails
-
add
Add the given single value to the current list of values for the given key.- Parameter:
key- the keyvalue- the value to be added
-
addAll
Add all the values of the given list to the current list of values for the given key.- Parameter:
key- they keyvalues- the values to be added
-
addAll
Add all the values of the givenMultiValueMapto the current values.- Parameter:
values- the values to be added
-