HashMap

constructor(initialCapacity: Int = 16)(source)

creates an empty map, rounding bucket capacity up to a power of two with a minimum of four; the default request is 16.

Parameters

initialCapacity

requested bucket capacity, not the initial size or an element limit.

Type Parameters

K

key type.

V

value type.