K
- 键类型V
- 值类型public class SetValueMap<K,V> extends AbsCollValueMap<K,V,Set<V>>
DEFAULT_COLLECTION_INITIAL_CAPACITY
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR
Constructor and Description |
---|
SetValueMap()
构造
|
SetValueMap(float loadFactor,
Map<? extends K,? extends Collection<V>> m)
构造
|
SetValueMap(int initialCapacity)
构造
|
SetValueMap(int initialCapacity,
float loadFactor)
构造
|
SetValueMap(Map<? extends K,? extends Collection<V>> m)
构造
|
Modifier and Type | Method and Description |
---|---|
protected Set<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 SetValueMap()
public SetValueMap(int initialCapacity)
initialCapacity
- 初始大小public SetValueMap(Map<? extends K,? extends Collection<V>> m)
m
- Mappublic SetValueMap(float loadFactor, Map<? extends K,? extends Collection<V>> m)
loadFactor
- 加载因子m
- Mappublic SetValueMap(int initialCapacity, float loadFactor)
initialCapacity
- 初始大小loadFactor
- 加载因子protected Set<V> createCollection()
AbsCollValueMap
createCollection
in class AbsCollValueMap<K,V,Set<V>>
Collection
Copyright © 2024. All rights reserved.