|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.wensiqun.asmsupport.utils.LinkedMultiValueMap<K,V>
public class LinkedMultiValueMap<K,V>
Simple implementation of MultiValueMap that wraps a LinkedHashMap,
storing multiple values in a LinkedList.
This Map implementation is generally not thread-safe. It is primarily designed for data structures exposed from request objects, for use in a single thread only.
| 嵌套类摘要 |
|---|
| 从接口 java.util.Map 继承的嵌套类/接口 |
|---|
Map.Entry<K,V> |
| 构造方法摘要 | |
|---|---|
LinkedMultiValueMap()
Create a new LinkedMultiValueMap that wraps a LinkedHashMap. |
|
LinkedMultiValueMap(int initialCapacity)
Create a new LinkedMultiValueMap that wraps a LinkedHashMap
with the given initial capacity. |
|
LinkedMultiValueMap(Map<K,List<V>> otherMap)
Copy constructor: Create a new LinkedMultiValueMap with the same mappings as the specified Map. |
|
| 方法摘要 | |
|---|---|
void |
add(K key,
V value)
Add the given single value to the current list of values for the given key. |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<K,List<V>>> |
entrySet()
|
boolean |
equals(Object obj)
|
List<V> |
get(Object key)
|
V |
getFirst(K key)
Return the first value for the given key. |
int |
hashCode()
|
boolean |
isEmpty()
|
Set<K> |
keySet()
|
List<V> |
put(K key,
List<V> value)
|
void |
putAll(Map<? extends K,? extends List<V>> m)
|
List<V> |
remove(Object 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. |
int |
size()
|
Map<K,V> |
toSingleValueMap()
Returns the first values contained in this MultiValueMap. |
String |
toString()
|
Collection<List<V>> |
values()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public LinkedMultiValueMap()
LinkedHashMap.
public LinkedMultiValueMap(int initialCapacity)
LinkedHashMap
with the given initial capacity.
initialCapacity - the initial capacitypublic LinkedMultiValueMap(Map<K,List<V>> otherMap)
otherMap - the Map whose mappings are to be placed in this Map| 方法详细信息 |
|---|
public void add(K key,
V value)
MultiValueMap 复制的描述
MultiValueMap<K,V> 中的 addkey - the keyvalue - the value to be addedpublic V getFirst(K key)
MultiValueMap 复制的描述
MultiValueMap<K,V> 中的 getFirstkey - the key
null
public void set(K key,
V value)
MultiValueMap 复制的描述
MultiValueMap<K,V> 中的 setkey - the keyvalue - the value to setpublic void setAll(Map<K,V> values)
MultiValueMap 复制的描述
MultiValueMap<K,V> 中的 setAllvalues - the values.public Map<K,V> toSingleValueMap()
MultiValueMap 复制的描述MultiValueMap.
MultiValueMap<K,V> 中的 toSingleValueMappublic int size()
Map<K,List<V>> 中的 sizepublic boolean isEmpty()
Map<K,List<V>> 中的 isEmptypublic boolean containsKey(Object key)
Map<K,List<V>> 中的 containsKeypublic boolean containsValue(Object value)
Map<K,List<V>> 中的 containsValuepublic List<V> get(Object key)
Map<K,List<V>> 中的 get
public List<V> put(K key,
List<V> value)
Map<K,List<V>> 中的 putpublic List<V> remove(Object key)
Map<K,List<V>> 中的 removepublic void putAll(Map<? extends K,? extends List<V>> m)
Map<K,List<V>> 中的 putAllpublic void clear()
Map<K,List<V>> 中的 clearpublic Set<K> keySet()
Map<K,List<V>> 中的 keySetpublic Collection<List<V>> values()
Map<K,List<V>> 中的 valuespublic Set<Map.Entry<K,List<V>>> entrySet()
Map<K,List<V>> 中的 entrySetpublic boolean equals(Object obj)
Map<K,List<V>> 中的 equalsObject 中的 equalspublic int hashCode()
Map<K,List<V>> 中的 hashCodeObject 中的 hashCodepublic String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||