Class WeakWeakMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.WeakHashMap<K,V>
com.twelvemonkeys.util.WeakWeakMap<K,V>
All Implemented Interfaces:
Map<K,V>

public class WeakWeakMap<K,V> extends WeakHashMap<K,V>
Special-purpose map implementation with weak keys and weak values. This is useful for mapping between keys and values that refer to (for example by wrapping) their keys. For more info, see WeakHashMap on why the values in a WeakHashMap must never refer strongly to their keys.
Version:
$Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/util/WeakWeakMap.java#1 $
See Also:
  • Constructor Details

    • WeakWeakMap

      public WeakWeakMap()
      Creates a WeakWeakMap with default initial capacity and load factor.
      See Also:
    • WeakWeakMap

      public WeakWeakMap(int pInitialCapacity)
      Creates a WeakWeakMap with the given initial capacity and default load factor.
      Parameters:
      pInitialCapacity - the initial capacity
      See Also:
    • WeakWeakMap

      public WeakWeakMap(int pInitialCapacity, float pLoadFactor)
      Creates a WeakWeakMap with the given initial capacity and load factor.
      Parameters:
      pInitialCapacity - the initial capacity
      pLoadFactor - the load factor
      See Also:
    • WeakWeakMap

      public WeakWeakMap(Map<? extends K,? extends V> pMap)
      Creates a WeakWeakMap containing the mappings in the given map.
      Parameters:
      pMap - the map whose mappings are to be placed in this map.
      See Also:
  • Method Details