Schnittstelle MultiValueMap<K,V>

Typparameter:
K - the key type
V - the value element type
Alle Superschnittstellen:
Map<K,List<V>>
Alle bekannten Implementierungsklassen:
LinkedMultiValueMap, MultiValueMapAdapter

public interface MultiValueMap<K,V> extends Map<K,List<V>>
Extension of the Map interface that stores multiple values.
  • Methodendetails

    • add

      void add(K key, V value)
      Add the given single value to the current list of values for the given key.
      Parameter:
      key - the key
      value - the value to be added
    • addAll

      void addAll(K key, List<? extends V> values)
      Add all the values of the given list to the current list of values for the given key.
      Parameter:
      key - they key
      values - the values to be added
    • addAll

      void addAll(MultiValueMap<K,V> values)
      Add all the values of the given MultiValueMap to the current values.
      Parameter:
      values - the values to be added