Package com.luna.common.map
Class ChainTreeMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<K,V>
com.luna.common.map.ChainTreeMap<K,V>
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,
,V> NavigableMap<K,
,V> SortedMap<K,
V>
- Author:
- luna
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorDescriptionChainTreeMap
(Comparator<? super K> comparator) ChainTreeMap
(Map<? extends K, ? extends V> m) ChainTreeMap
(SortedMap<K, ? extends V> m) -
Method Summary
Modifier and TypeMethodDescriptionstatic <K extends Comparable,
V>
ChainTreeMap<K,V> putIfNotEmpty
(K key, V value) 对 HashMap 的 put() 的方法进行封转返回 ChainHashMap 来实现 链式添加Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
-
Constructor Details
-
ChainTreeMap
public ChainTreeMap() -
ChainTreeMap
-
ChainTreeMap
-
ChainTreeMap
-
-
Method Details
-
newChainMap
-
putIfNotEmpty
对 HashMap 的 put() 的方法进行封转返回 ChainHashMap 来实现 链式添加- Parameters:
key
- kvalue
- v- Returns:
-