Interface IHashtable

Index

Methods

Methods

public clear()

public clone(): IHashtable

Returns

IHashtable

public containsKey(key: TKey in IHashtable<TKey, TValue>): boolean

Parameters

  • key: TKey in IHashtable<TKey, TValue>

Returns

boolean

public containsValue(value: TValue in IHashtable<TKey, TValue>): boolean

Parameters

  • value: TValue in IHashtable<TKey, TValue>

Returns

boolean

public each(callback: (key: TKey, value: TValue) => void)

Parameters

  • callback: (key: TKey, value: TValue) => void

public entries(): Array<any[]>

Returns

Array<any[]>

public equals(hashtable: IHashtable): boolean

Parameters

Returns

boolean

public get(key: TKey in IHashtable<TKey, TValue>): TValue in IHashtable<TKey, TValue>

Parameters

  • key: TKey in IHashtable<TKey, TValue>

Returns

TValue in IHashtable<TKey, TValue>

public isEmpty(): boolean

Returns

boolean

public keys(): Array<TKey>

Returns

Array<TKey>

public put(key: TKey in IHashtable<TKey, TValue>, value: TValue in IHashtable<TKey, TValue>): TValue in IHashtable<TKey, TValue>

Parameters

  • key: TKey in IHashtable<TKey, TValue>
  • value: TValue in IHashtable<TKey, TValue>

Returns

TValue in IHashtable<TKey, TValue>

public putAll(hashtable: IHashtable, conflictCallback?: (key: TKey, thisValue: TValue, value: TValue) => TValue)

Parameters

  • hashtable: IHashtable
  • conflictCallback?: (key: TKey, thisValue: TValue, value: TValue) => TValue optional

public remove(key: TKey in IHashtable<TKey, TValue>): TValue in IHashtable<TKey, TValue>

Parameters

  • key: TKey in IHashtable<TKey, TValue>

Returns

TValue in IHashtable<TKey, TValue>

public size(): number

Returns

number

public toQueryString(): string

Returns

string

public values(): Array<TValue>

Returns

Array<TValue>