|
Joutsen v0.5.0+12-g5dd5f7e
|
A collection of key-value association that can only be read. More...
Public Member Functions | |
| bool | ContainsKey (KeyType key) |
| Checks if a key is part of the mapping. More... | |
| ValueType | GetValue (KeyType key, ValueType defaultValue) |
| Fetches the value associated with a key or a default value. More... | |
| bool | TryGetValue (KeyType key, out ValueType value) |
| Get a value if the key is part of the mapping. More... | |
Properties | |
| ValueType | this[KeyType key] [get] |
| Fetches a value associated with a key. More... | |
| IEnumerable< KeyType > | Keys [get] |
| Fetches an iterator for the keys in the mapping. More... | |
| IEnumerable< ValueType > | Values [get] |
| Fetches an iterator for the values in the mapping. More... | |
| int | Count [get] |
| Fetches the number of elements in the mapping. More... | |
A collection of key-value association that can only be read.
| bool Joutsen.Collections.Generic.Mapping< KeyType, ValueType >.ContainsKey | ( | KeyType | key | ) |
Checks if a key is part of the mapping.
| key | the key to lookup |
Implemented in Joutsen.Collections.Generic.Compatibility.MapAdapter< KeyType, ValueType >, Joutsen.Collections.Generic.BidirectionalDictionary< KeyType, ValueType >, Joutsen.Collections.Generic.Map< KeyType, ValueType >, and Joutsen.Collections.Generic.ReadOnlyMap< KeyType, ValueType >.
| ValueType Joutsen.Collections.Generic.Mapping< KeyType, ValueType >.GetValue | ( | KeyType | key, |
| ValueType | defaultValue | ||
| ) |
Fetches the value associated with a key or a default value.
| key | the key associated with the value to retrieve |
| defaultValue | the value to return if the key is not found in the map |
Implemented in Joutsen.Collections.Generic.Compatibility.MapAdapter< KeyType, ValueType >, Joutsen.Collections.Concurrent.ConcurrentDictionary< KeyType, ValueType >, Joutsen.Collections.Generic.BidirectionalDictionary< KeyType, ValueType >, Joutsen.Collections.Generic.Dictionary< KeyType, ValueType >, Joutsen.Collections.Generic.SortedDictionary< KeyType, ValueType >, and Joutsen.Collections.Generic.ReadOnlyMap< KeyType, ValueType >.
| bool Joutsen.Collections.Generic.Mapping< KeyType, ValueType >.TryGetValue | ( | KeyType | key, |
| out ValueType | value | ||
| ) |
Get a value if the key is part of the mapping.
| key | the key to lookup in the mapping |
| value | the output parameter that will contain the value associated with the key if it is part orf the mapping |
Implemented in Joutsen.Collections.Generic.Compatibility.MapAdapter< KeyType, ValueType >, Joutsen.Collections.Generic.BidirectionalDictionary< KeyType, ValueType >, and Joutsen.Collections.Generic.ReadOnlyMap< KeyType, ValueType >.
|
get |
Fetches the number of elements in the mapping.
Implemented in Joutsen.Collections.Generic.Compatibility.MapAdapter< KeyType, ValueType >, Joutsen.Collections.Generic.BidirectionalDictionary< KeyType, ValueType >, Joutsen.Collections.Generic.Map< KeyType, ValueType >, and Joutsen.Collections.Generic.ReadOnlyMap< KeyType, ValueType >.
|
get |
Fetches an iterator for the keys in the mapping.
Implemented in Joutsen.Collections.Generic.BidirectionalDictionary< KeyType, ValueType >, and Joutsen.Collections.Generic.ReadOnlyMap< KeyType, ValueType >.
|
get |
Fetches a value associated with a key.
| key | the key to lookup |
Implemented in Joutsen.Collections.Generic.Compatibility.MapAdapter< KeyType, ValueType >, Joutsen.Collections.Generic.BidirectionalDictionary< KeyType, ValueType >, Joutsen.Collections.Generic.Map< KeyType, ValueType >, and Joutsen.Collections.Generic.ReadOnlyMap< KeyType, ValueType >.
|
get |
Fetches an iterator for the values in the mapping.
Implemented in Joutsen.Collections.Generic.BidirectionalDictionary< KeyType, ValueType >, Joutsen.Collections.Generic.Map< KeyType, ValueType >, and Joutsen.Collections.Generic.ReadOnlyMap< KeyType, ValueType >.