Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HashMap<KeyType, ValueType, HashCodeType>

Type Parameters

  • KeyType

  • ValueType

  • HashCodeType

Hierarchy

Index

Constructors

  • new HashMap<KeyType, ValueType, HashCodeType>(_hash: Hash<KeyType, HashCodeType>): HashMap<KeyType, ValueType, HashCodeType>

Accessors

  • get size(): number

Methods

  • entries(): IterableIterator<[KeyType, ValueType, HashCodeType]>
  • get(key: KeyType, hashCode?: HashCodeType): undefined | ValueType
  • getOrDefault(key: KeyType, defaultFactory: (() => ValueType)): undefined | ValueType
  • has(key: KeyType, hashCode?: HashCodeType): boolean
  • keys(): IterableIterator<[KeyType, HashCodeType]>
  • set(key: KeyType, value: ValueType, hashCode?: HashCodeType): void

Generated using TypeDoc