K
- 键类型V
- 值类型public class ListValueMap<K,V> extends AbsCollValueMap<K,V,List<V>>
DEFAULT_COLLECTION_INITIAL_CAPACITY
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR
Constructor and Description |
---|
ListValueMap()
构造
|
ListValueMap(float loadFactor,
Map<? extends K,? extends Collection<V>> m)
构造
|
ListValueMap(int initialCapacity)
构造
|
ListValueMap(int initialCapacity,
float loadFactor)
构造
|
ListValueMap(Map<? extends K,? extends Collection<V>> m)
构造
|
Modifier and Type | Method and Description |
---|---|
protected List<V> |
createCollection()
创建集合
此方法用于创建在putValue后追加值所在的集合,子类实现此方法创建不同类型的集合 |
get, putAllValues, putValue, removeValue, removeValues
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, getRaw, hashCode, isEmpty, iterator, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ListValueMap()
public ListValueMap(int initialCapacity)
initialCapacity
- 初始大小public ListValueMap(Map<? extends K,? extends Collection<V>> m)
m
- Mappublic ListValueMap(float loadFactor, Map<? extends K,? extends Collection<V>> m)
loadFactor
- 加载因子m
- Mappublic ListValueMap(int initialCapacity, float loadFactor)
initialCapacity
- 初始大小loadFactor
- 加载因子protected List<V> createCollection()
AbsCollValueMap
createCollection
in class AbsCollValueMap<K,V,List<V>>
Collection
Copyright © 2024. All rights reserved.