Class WeakValueHashMap<K,​V>

  • All Implemented Interfaces:
    java.util.Map<K,​V>

    public class WeakValueHashMap<K,​V>
    extends AbstractWeakValueMap<K,​V>
    Class to provide a hash map with weak values.
    • Constructor Detail

      • WeakValueHashMap

        public WeakValueHashMap()
        Constructs a new weak map
      • WeakValueHashMap

        public WeakValueHashMap​(int initialSize)
        Constructs a new weak map with the given initial size
        Parameters:
        initialSize - the initial size of the backing map