Home Reference Source
public class | source

KeyValuePairCollection

Extends:

TypedObject → KeyValuePairCollection

An equivalent of a Java HashMap, that allws you to have object keys and values.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

keys: *[]

public

values: *[]

Method Summary

Public Methods
public

addItem(key: Object, value: Object)

Add a key value pair

public

clear()

Remove all key value pairs

public
public

getValue(key: Object): *

Get value for the key from key Value pair

public

hasKey(key: Object): *

Check whether key exists or not

public

kill()

public

Remove item with associate key

Inherited Summary

From class TypedObject
public

typeCache: {}

public
public

Returns a list of strings that represent the object hierarchy for this object.

public

Returns true if the class name to check is in the list of class names defined for this class.

Public Constructors

public constructor() source

Override:

TypedObject#constructor

Public Members

public keys: *[] source

public values: *[] source

Public Methods

public addItem(key: Object, value: Object) source

Add a key value pair

Params:

NameTypeAttributeDescription
key Object
value Object

public clear() source

Remove all key value pairs

public getClassNames(): string source

Returns a list of strings that represent the object hierarchy for this object.

Override:

TypedObject#getClassNames

Return:

string

public getValue(key: Object): * source

Get value for the key from key Value pair

Params:

NameTypeAttributeDescription
key Object

Return:

*

public hasKey(key: Object): * source

Check whether key exists or not

Params:

NameTypeAttributeDescription
key Object

Return:

*

public kill() source

public removeItem(key: Object) source

Remove item with associate key

Params:

NameTypeAttributeDescription
key Object