Type parameters

  • K

  • V

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Default value options: object = { ignoreCase: false, checkType: false }
      • Optional checkType?: boolean
      • Optional ignoreCase?: boolean

    Returns Hashtable

Properties

entries

entries: Map<string | K, object> = new Map<K | string, { key: K, value: V }>()

Accessors

count

  • get count(): number
  • Gets the number of key/value pairs contained in the Hashtable.

    Returns number

keys

values

Methods

[Symbol.iterator]

  • [Symbol.iterator](): Iterator<object>
  • Returns Iterator<object>

add

  • add(key: K, value: V): void
  • Adds an element with the specified key and value into the Hashtable.

    Parameters

    • key: K
    • value: V

    Returns void

clear

  • clear(): void
  • Removes all elements from the Hashtable.

    Returns void

clone

contains

  • contains(key: K): boolean
  • Determines whether the Hashtable contains a specific key.

    Parameters

    • key: K

    Returns boolean

containsKey

  • containsKey(key: K): boolean
  • Determines whether the Hashtable contains a specific key.

    Parameters

    • key: K

    Returns boolean

containsValue

  • containsValue(value: V): boolean
  • Determines whether the Hashtable contains a specific value.

    Parameters

    • value: V

    Returns boolean

copyTo

  • copyTo(array: V[], arrayIndex: number): void
  • Copies the Hashtable elements to a one-dimensional Array instance at the specified index.

    Parameters

    • array: V[]
    • arrayIndex: number

    Returns void

get

  • get(key: K): V
  • Parameters

    • key: K

    Returns V

Protected getActualKey

  • getActualKey(key: K): string | K
  • Parameters

    • key: K

    Returns string | K

getByIndex

  • getByIndex(index: number): V
  • Parameters

    • index: number

    Returns V

Protected getRawValueByKey

  • getRawValueByKey(key: K): object
  • Parameters

    • key: K

    Returns object

    • key: K
    • value: V

indexOfKey

  • indexOfKey(key: K): number
  • Parameters

    • key: K

    Returns number

remove

  • remove(key: K): void
  • Removes the element with the specified key from the Hashtable.

    Parameters

    • key: K

    Returns void

set

  • set(key: K, value: V): void
  • Parameters

    • key: K
    • value: V

    Returns void

Generated using TypeDoc