- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,Collection<V>>
-
- develop.toolkit.base.struct.CollectionInMap<K,V>
-
- 所有已实现的接口:
Serializable,Cloneable,Map<K,Collection<V>>
public class CollectionInMap<K,V> extends LinkedHashMap<K,Collection<V>>
Map里有集合结构- 作者:
- qiushui on 2018-07-09.
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从类继承的嵌套类/接口 java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
构造器概要
构造器 构造器 说明 CollectionInMap()CollectionInMap(int initialCapacity, Supplier<Collection<V>> supplier)CollectionInMap(Supplier<Collection<V>> supplier)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidputAllItem(K key, @NonNull Collection<V> items)追加元素voidputAllItemSoft(K key, @NonNull Collection<V> items)软追加元素voidputItem(K key, V item)追加元素voidputItemSoft(K key, V item)软追加元素voidremoveIfItem(K key, @NonNull Predicate<? super V> filter)根据条件删除元素voidremoveItem(K key, V item)删除元素-
从类继承的方法 java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
从类继承的方法 java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
从类继承的方法 java.util.AbstractMap
equals, hashCode, toString
-
从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
构造器详细资料
-
CollectionInMap
public CollectionInMap()
-
CollectionInMap
public CollectionInMap(Supplier<Collection<V>> supplier)
-
CollectionInMap
public CollectionInMap(int initialCapacity, Supplier<Collection<V>> supplier)
-
-
方法详细资料
-
putAllItem
public void putAllItem(K key, @NonNull @NonNull Collection<V> items)
追加元素- 参数:
key- map keyitems- 新元素
-
putAllItemSoft
public void putAllItemSoft(K key, @NonNull @NonNull Collection<V> items)
软追加元素- 参数:
key- map keyitems- 新元素
-
-