Class StringHashTable

Hierarchy

Index

Properties

Methods

Properties

private itemCount: any

private table: any

Methods

public add(key: string, data: T in TypeScript.StringHashTable<T>): boolean

Parameters

  • key: string
  • data: T in TypeScript.StringHashTable<T>

Returns

boolean

public addOrUpdate(key: string, data: T in TypeScript.StringHashTable<T>): boolean

Parameters

  • key: string
  • data: T in TypeScript.StringHashTable<T>

Returns

boolean

public count(): number

Returns

number

public every(fn: (k: string, value: T, context: any) => void, context: any): boolean

Parameters

  • fn: (k: string, value: T, context: any) => void
  • context: any

Returns

boolean

public getAllKeys(): Array<string>

Returns

Array<string>

public lookup(key: string): T in TypeScript.StringHashTable<T>

Parameters

  • key: string

Returns

T in TypeScript.StringHashTable<T>

public map(fn: (k: string, value: T, context: any) => void, context: any)

Parameters

  • fn: (k: string, value: T, context: any) => void
  • context: any

public remove(key: string)

Parameters

  • key: string

public some(fn: (k: string, value: T, context: any) => void, context: any): boolean

Parameters

  • fn: (k: string, value: T, context: any) => void
  • context: any

Returns

boolean