public class CollectionInMap<K,V> extends ConcurrentHashMap<K,Collection<V>>
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
CollectionInMap.CollectionProvider<K,V>
集合提供器
|
ConcurrentHashMap.KeySetView<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 构造器和说明 |
|---|
CollectionInMap(CollectionInMap.CollectionProvider collectionProvider) |
CollectionInMap(int initialCapacity,
CollectionInMap.CollectionProvider collectionProvider) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAllItem(K key,
Collection<V> items)
追加元素
|
void |
addAllItemSoft(K key,
Collection<V> items)
软追加元素
|
void |
addItem(K key,
V item)
追加元素
|
void |
addItemSoft(K key,
V item)
软追加元素
|
void |
removeIfItem(K key,
Predicate<? super V> filter)
根据条件删除元素
|
void |
removeItem(K key,
V item)
删除元素
|
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, valuesclonepublic CollectionInMap(@NonNull
CollectionInMap.CollectionProvider collectionProvider)
public CollectionInMap(int initialCapacity,
@NonNull
CollectionInMap.CollectionProvider collectionProvider)
public void addAllItem(K key, @NonNull Collection<V> items)
key - map keyitems - 新元素public void addAllItemSoft(K key, @NonNull Collection<V> items)
key - map keyitems - 新元素Copyright © 2018. All rights reserved.