Class SoftValueMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
org.apache.cayenne.util.SoftValueMap<K,V>
All Implemented Interfaces:
Serializable, Map<K,V>

public class SoftValueMap<K,V> extends AbstractMap<K,V> implements Serializable
Map that stores values wrapped into SoftReference
Since:
4.1
See Also:
  • Field Details

    • map

      protected transient HashMap<K,SoftReference<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 Details

    • SoftValueMap

      public SoftValueMap()
    • SoftValueMap

      public SoftValueMap(int initialCapacity)
    • SoftValueMap

      public SoftValueMap(Map<? extends K,? extends V> m)
  • Method Details