Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • TKey

  • TValue

Hierarchy

  • HashTable

Implements

  • Map<TKey, TValue>

Index

Constructors

constructor

  • new HashTable(buckets: KeyValuePair<TKey, TValue>[][], count: number, avgBucketFill: number, initialCapacity: number, comparer: EqualityComparer<TKey>, hashTableFactory: function): HashTable

Properties

__@toStringTag

__@toStringTag: "Map"

avgBucketFill

avgBucketFill: number

buckets

buckets: KeyValuePair<TKey, TValue>[][]

comparer

comparer: EqualityComparer<TKey>

count

count: number

hashTableFactory

hashTableFactory: function

Type declaration

initialCapacity

initialCapacity: number

insertCount

insertCount: number

Accessors

size

size:

Methods

__@iterator

  • __@iterator(): IterableIterator<Object>

add

  • add(key: TKey, value: TValue, insertIndex?: undefined | number): boolean
  • Parameters

    • key: TKey
    • value: TValue
    • Optional insertIndex: undefined | number

    Returns boolean

clear

  • clear(): void

delete

  • delete(key: TKey): boolean

entries

  • entries(): IterableIterator<[TKey, TValue]>

forEach

  • forEach(callbackfn: function, thisArg?: any): void
  • Parameters

    • callbackfn: function
        • (value: TValue, key: TKey, map: Map<TKey, TValue>): void
        • Parameters

          • value: TValue
          • key: TKey
          • map: Map<TKey, TValue>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(key: TKey): undefined | TValue

has

  • has(key: TKey): boolean

keys

  • keys(): IterableIterator<TKey>

set

  • set(key: TKey, value: TValue): this

toString

  • toString(): string

values

  • values(): IterableIterator<TValue>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc