接口 MultiValueMap<K,​V>

    • 方法详细资料

      • getFirst

        V getFirst​(K key)
        Return the first value for the given key.
        参数:
        key - the key
        返回:
        the first value for the specified key, or null if none
      • add

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

        void set​(K key,
                 V value)
        Set the given single value under the given key.
        参数:
        key - the key
        value - the value to set
      • setAll

        void setAll​(Map<K,​V> values)
        Set the given values under.
        参数:
        values - the values.
      • toSingleValueMap

        Map<K,​VtoSingleValueMap()
        Return a Map with the first values contained in this MultiValueMap.
        返回:
        a single value representation of this map