Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HashMapOpts<K>

Creation options for HashMap class.

Type parameters

  • K

Hierarchy

  • HashMapOpts

Index

Properties

Optional cap

cap: number

Initial capacity. Will be rounded up to next power of 2.

defaultvalue

16

Optional equiv

equiv: Predicate2<K>

Optional key equality predicate.

defaultvalue

equiv

hash

hash: HashFn<K>

Function for computing key hash codes. MUST be supplied. Only numeric hashes are supported.

Optional load

load: number

Normalized max load factor in the open (0..1) interval. The map will be resized (doubled in size) and all existing keys rehashed every time a new key is to be added and the current size exceeds this normalized load.

defaultvalue

0.75

Generated using TypeDoc