Class WeakValueMap<K,​V>

    • Field Detail

      • map

        protected transient HashMap<K,​R extends Reference<V>> map
        This is a main data storage used for most operations
      • referenceQueue

        protected transient ReferenceQueue<V> referenceQueue
      • entrySet

        protected transient Set<Map.Entry<K,​V>> entrySet
        This is a lazily created set of entries that is essentially a view to actual data
    • Constructor Detail

      • WeakValueMap

        public WeakValueMap()
      • WeakValueMap

        public WeakValueMap​(int initialCapacity)
      • WeakValueMap

        public WeakValueMap​(Map<? extends K,​? extends V> m)