cn.wensiqun.asmsupport.utils
接口 MultiValueMap<K,V>

所有超级接口:
Map<K,List<V>>
所有已知实现类:
LinkedMultiValueMap

public interface MultiValueMap<K,V>
extends Map<K,List<V>>

Extension of the Map interface that stores multiple values.

从以下版本开始:
3.0
作者:
Arjen Poutsma

嵌套类摘要
 
从接口 java.util.Map 继承的嵌套类/接口
Map.Entry<K,V>
 
方法摘要
 void add(K key, V value)
          Add the given single value to the current list of values for the given key.
 V getFirst(K key)
          Return the first value for the given key.
 void set(K key, V value)
          Set the given single value under the given key.
 void setAll(Map<K,V> values)
          Set the given values under.
 Map<K,V> toSingleValueMap()
          Returns the first values contained in this MultiValueMap.
 
从接口 java.util.Map 继承的方法
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

方法详细信息

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

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,V> toSingleValueMap()
Returns the first values contained in this MultiValueMap.

返回:
a single value representation of this map


Copyright © 2013. All Rights Reserved.