public interface MapCollection<K, V>:
Base interface for associative collections. @param <K> Key type. @param <V> Value type.
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | sizesize as ULong |
Gets the number of entries in the collection. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | clearclear() as Void |
Clears all entries. |
| public | containsValuecontainsValue(value as V) as Boolean |
Returns true if the value exists. |
| public | items | Returns the items as a list of tuples. |
| public | keyskeys() as IList<K> |
Returns the keys as a list. |
| public | removeremove(key as K) as Boolean |
Removes an entry. |
| public | valuesvalues() as IList<V> |
Returns the values as a list. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | operator in(key as K) as Boolean | Returns true if the key exists. |
| public | operator[](key as K) as V | Gets or sets the value associated with the key, or null if missing. |