ConcurrentReferenceHashMap

constructor()

Create a new ConcurrentReferenceHashMap instance.


constructor(initialCapacity: Int)

Create a new ConcurrentReferenceHashMap instance.

Parameters

initialCapacity

the initial capacity of the map


constructor(initialCapacity: Int, loadFactor: Float)

Create a new ConcurrentReferenceHashMap instance.

Parameters

initialCapacity

the initial capacity of the map

loadFactor

the load factor. When the average number of references per table exceeds this value resize will be attempted


constructor(initialCapacity: Int, concurrencyLevel: Int)

Create a new ConcurrentReferenceHashMap instance.

Parameters

initialCapacity

the initial capacity of the map

concurrencyLevel

the expected number of threads that will concurrently write to the map


constructor(initialCapacity: Int, referenceType: ConcurrentReferenceHashMap.ReferenceType)

Create a new ConcurrentReferenceHashMap instance.

Parameters

initialCapacity

the initial capacity of the map

referenceType

the reference type used for entries (soft or weak)


constructor(initialCapacity: Int, loadFactor: Float, concurrencyLevel: Int)

Create a new ConcurrentReferenceHashMap instance.

Parameters

initialCapacity

the initial capacity of the map

loadFactor

the load factor. When the average number of references per table exceeds this value, resize will be attempted.

concurrencyLevel

the expected number of threads that will concurrently write to the map


constructor(initialCapacity: Int, loadFactor: Float, concurrencyLevel: Int, referenceType: ConcurrentReferenceHashMap.ReferenceType)

Create a new ConcurrentReferenceHashMap instance.

Parameters

initialCapacity

the initial capacity of the map

loadFactor

the load factor. When the average number of references per table exceeds this value, resize will be attempted.

concurrencyLevel

the expected number of threads that will concurrently write to the map

referenceType

the reference type used for entries (soft or weak)