Class ReferenceValueTreeMap<K,​V>

  • Type Parameters:
    K - the key type
    V - the value type
    All Implemented Interfaces:
    java.util.Map<K,​V>
    Direct Known Subclasses:
    SoftValueTreeMap, WeakValueTreeMap

    public abstract class ReferenceValueTreeMap<K,​V>
    extends ReferenceValueMap<K,​V>
    This Map will remove entries when the value in the map has been cleaned from garbage collection
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Map<K,​ValueRef<K,​V>> createMap()
      Create map.
      protected java.util.Map<K,​ValueRef<K,​V>> createMap​(int initialCapacity)
      Create map.
      protected java.util.Map<K,​ValueRef<K,​V>> createMap​(int initialCapacity, float loadFactor)
      Create map.
      protected java.util.Map<K,​ValueRef<K,​V>> createMap​(java.util.Comparator<K> comparator)
      Create map.
      protected java.util.Map<K,​ValueRef<K,​V>> createMap​(java.util.SortedMap<K,​ValueRef<K,​V>> map)
      Create map.
      • Methods inherited from class java.util.AbstractMap

        clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • ReferenceValueTreeMap

        protected ReferenceValueTreeMap()
      • ReferenceValueTreeMap

        protected ReferenceValueTreeMap​(java.util.Comparator<K> comparator)
      • ReferenceValueTreeMap

        protected ReferenceValueTreeMap​(java.util.SortedMap<K,​ValueRef<K,​V>> sorted)