Class ConcurrentWeakHashMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
de.hybris.platform.util.collections.ConcurrentWeakHashMap<K,V>
All Implemented Interfaces:
ConcurrentMap<K,V>, Map<K,V>

public class ConcurrentWeakHashMap<K,V> extends AbstractMap<K,V> implements ConcurrentMap<K,V>
  • Constructor Details

    • ConcurrentWeakHashMap

      public ConcurrentWeakHashMap(int initialCapacity, float loadFactor, int concurrencyLevel)
      Constructs a new, empty HashMap with the specified initial capacity and the specified load factor.
      Parameters:
      initialCapacity - the initial capacity of the HashMap.
      loadFactor - a number between 0.0 and 1.0.
      concurrencyLevel - the estimated number of concurrently updating threads. The implementation performs internal sizing to try to accommodate this many threads.
      Throws:
      IllegalArgumentException - if neither keys nor values use hard references, if the initial capacity is less than or equal to zero, or if the load factor is less than or equal to zero
    • ConcurrentWeakHashMap

      public ConcurrentWeakHashMap(int initialCapacity)
      Constructs a new, empty HashMap with the specified initial capacity and default load factor.
      Parameters:
      initialCapacity - the initial capacity of the HashMap.
    • ConcurrentWeakHashMap

      public ConcurrentWeakHashMap()
      Constructs a new, empty HashMap with a default capacity and load factor.
  • Method Details