Class: HashEx

Kekule. HashEx

new HashEx()

A class to implement str => variant mapping.
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 string,
Parameters:
Name Type Description
key String
defaultValue Variant Return this value if key does not exist.
Source:
Returns:
Type
Variant

has(key) → {Bool}

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

remove(key)

Removes any value associated to the key string.
Parameters:
Name Type Description
key String
Source:

set(key, value)

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

Kekule. HashEx

new HashEx()

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 string,
Parameters:
Name Type Description
key String
defaultValue Variant Return this value if key does not exist.
Source:
Returns:
Type
Variant

has(key) → {Bool}

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

remove(key)

Removes any value associated to the key string.
Parameters:
Name Type Description
key String
Source:

set(key, value)

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