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>

public class ChainTreeMap<K,V> extends TreeMap<K,V>
Author:
luna
See Also:
  • Constructor Details

    • ChainTreeMap

      public ChainTreeMap()
    • ChainTreeMap

      public ChainTreeMap(Comparator<? super K> comparator)
    • ChainTreeMap

      public ChainTreeMap(Map<? extends K,? extends V> m)
    • ChainTreeMap

      public ChainTreeMap(SortedMap<K,? extends V> m)
  • Method Details

    • newChainMap

      public static <K extends Comparable, V> ChainTreeMap<K,V> newChainMap()
    • putIfNotEmpty

      public ChainTreeMap<K,V> putIfNotEmpty(K key, V value)
      对 HashMap 的 put() 的方法进行封转返回 ChainHashMap 来实现 链式添加
      Parameters:
      key - k
      value - v
      Returns: