Mapping functions
Mapping Methods
The Mapping object provides following methods:
Method | Description |
---|---|
"clear" | Empties the mapping. |
"contains" | Returns true if the key is already in the mapping. |
"count" | Returns the number of keys. |
"insert" | Insert a key/value pair. |
"isEmpty" | Returns true if the mapping is empty. |
"keys" | Returns a list containing all the keys in a mapping in an arbitrary order. |
"merge" | Merges two mappings. |
"keyAt" | Returns the key at the given mapping index. |
"merged" | Creates a new instance from merging two mappings |
"value" | Returns the value at given key. |
"valueAt" | Returns the value at the given mapping index. |
"values" | Returns a list containing all values in a mapping, in an arbitrary order. The order is the same as that used by keys(). |
Mapping Specific Functions
The following functions are used for the handling of mappings: