Class: MapEx

Kekule. MapEx

new MapEx()

A class to implement obj => obj mappings.
Source:

Methods

clear()

Clear all key and values in map.
Source:

finalize()

Free resources.
Source:

get(key, defaultValue) → {Variant}

Returns the value associated to the key object,
Parameters:
Name Type Description
key Variant
defaultValue Variant Return this value if key does not exist.
Source:
Returns:
Type
Variant

getKeys() → {Array}

Returns an array of all keys in map.
Source:
Returns:
Type
Array

getValues() → {Array}

Returns an array of all values in map.
Source:
Returns:
Type
Array

has(key) → {Bool}

Check whether a value has been associated to the key object.
Parameters:
Name Type Description
key Variant
Source:
Returns:
Type
Bool

remove(key)

Removes any value associated to the key object.
Parameters:
Name Type Description
key Object
Source:

set(key, value)

Set the value for the key object.
Parameters:
Name Type Description
key Variant
value Variant
Source:

Kekule. MapEx

new MapEx()

Source:

Methods

clear()

Clear all key and values in map.
Source:

finalize()

Free resources.
Source:

get(key, defaultValue) → {Variant}

Returns the value associated to the key object,
Parameters:
Name Type Description
key Variant
defaultValue Variant Return this value if key does not exist.
Source:
Returns:
Type
Variant

getKeys() → {Array}

Returns an array of all keys in map.
Source:
Returns:
Type
Array

getValues() → {Array}

Returns an array of all values in map.
Source:
Returns:
Type
Array

has(key) → {Bool}

Check whether a value has been associated to the key object.
Parameters:
Name Type Description
key Variant
Source:
Returns:
Type
Bool

remove(key)

Removes any value associated to the key object.
Parameters:
Name Type Description
key Object
Source:

set(key, value)

Set the value for the key object.
Parameters:
Name Type Description
key Variant
value Variant
Source: