Summary for: HashMap < handle

Class summary

HashMap is a class. obj = HashMap

Properties

.HashMap/keys_array is a property.

.HashMap/return_empty_for_invalid_key is a property.

.HashMap/ri is a property.

.HashMap/vals is a property.

Methods

Class methods are listed below. Inherited methods are not included.

.HashMap/HashMap is a constructor.

obj = HashMap Documentation for HashMap/HashMap doc HashMap

.HashMap/add is a function.

add(this, key, val)

.DISP Display array.

DISP(X) displays array X without printing the array name or additional description information such as the size and class name. In all other ways it is the same as leaving the semicolon off an expression except that nothing is shown for empty arrays.

If X is a string or character array, the text is displayed.

See also formattedDisplayText, sprintf, num2str, format, details.

.get Value corresponding to the key.

value = get(this, key)

Returns the value corresponding to the key. Errors if not set.

.get_all Get all values in a 1xN array.

.HashMap/has_key is a function.

bl = has_key(this, key)

.HashMap/index_of_key is a function.

out = index_of_key(this, key)

.HashMap/index_of_val is a function.

out = index_of_val(this, val)

.HashMap/keys is a function.

ks = keys(this)

.set Set an item.

set(this, key, value)

Sets the (key, value) pair.