Sharpility
|
Dictionary that contains multiple values at given key. More...
Public Member Functions | |
void | Put (TKey key, TValue value) |
Puts value at given key. | |
void | PutAll (TKey key, IEnumerable< TValue > values) |
Puts multiple values to given key. | |
void | PutAll (MultiDictionary< TKey, TValue > multiDictionary) |
Pults all entries from given multiDictionary. | |
void | PutAll (IEnumerable< KeyValuePair< TKey, TValue >> entries) |
Puts all entries. | |
bool | Remove (TKey key) |
Removes key entries. | |
bool | Remove (TKey key, TValue value) |
Removes key-value entry. | |
ICollection< TValue > | RemoveAll (TKey key) |
Removes all values at given key. | |
ICollection< TValue > | ReplaceValues (TKey key, IEnumerable< TValue > values) |
Replaces all values by given key. | |
void | Clear () |
Removes all entries. | |
ICollection< TValue > | Get (TKey key) |
Returns all values mapped by given key. | |
bool | ContainsKey (TKey key) |
Checks is dictionary contains given key. | |
int | ValuesCount (TKey key) |
Returns number of all values stored by given key. | |
bool | ContainsValue (TValue value) |
Checks is dictionary contains given value. | |
bool | ContainsEntry (TKey key, TValue value) |
Checks is dictionary contains given entry. | |
IDictionary< TKey, ICollection < TValue > > | ToDictionary () |
Converts multi dictionary to regular dictionary. | |
Properties | |
ICollection< TValue > | this[TKey key] [get] |
Returns all values mapped by given key. | |
int | Count [get] |
Returns number of all values. | |
ISet< TKey > | Keys [get] |
Returns set of all keys. | |
ICollection< TValue > | Values [get] |
Returns all values. | |
ICollection< KeyValuePair < TKey, TValue > > | Entries [get] |
Returns all entries. | |
ICollection< KeyValuePair < TKey, ICollection< TValue > > > | MultiEntries [get] |
Returns entries with multiple values for given key. | |
bool | IsEmpty [get] |
Checks is dictionary is emtpy. |
Dictionary that contains multiple values at given key.
TKey | Type of key |
TValue | Type of value |
void Sharpility.Collections.MultiDictionary< TKey, TValue >.Clear | ( | ) |
Removes all entries.
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
bool Sharpility.Collections.MultiDictionary< TKey, TValue >.ContainsEntry | ( | TKey | key, |
TValue | value | ||
) |
Checks is dictionary contains given entry.
key | Checked key |
value | Checked value |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
bool Sharpility.Collections.MultiDictionary< TKey, TValue >.ContainsKey | ( | TKey | key | ) |
Checks is dictionary contains given key.
key | Checked key |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
bool Sharpility.Collections.MultiDictionary< TKey, TValue >.ContainsValue | ( | TValue | value | ) |
Checks is dictionary contains given value.
value | Checked value |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
ICollection<TValue> Sharpility.Collections.MultiDictionary< TKey, TValue >.Get | ( | TKey | key | ) |
Returns all values mapped by given key.
key | Key |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
void Sharpility.Collections.MultiDictionary< TKey, TValue >.Put | ( | TKey | key, |
TValue | value | ||
) |
Puts value at given key.
key | key value |
value | value |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
void Sharpility.Collections.MultiDictionary< TKey, TValue >.PutAll | ( | TKey | key, |
IEnumerable< TValue > | values | ||
) |
Puts multiple values to given key.
key | |
values |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
void Sharpility.Collections.MultiDictionary< TKey, TValue >.PutAll | ( | MultiDictionary< TKey, TValue > | multiDictionary | ) |
Pults all entries from given multiDictionary.
multiDictionary | MultiDictionary |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
void Sharpility.Collections.MultiDictionary< TKey, TValue >.PutAll | ( | IEnumerable< KeyValuePair< TKey, TValue >> | entries | ) |
Puts all entries.
entries | KeyValuePair entries |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
bool Sharpility.Collections.MultiDictionary< TKey, TValue >.Remove | ( | TKey | key | ) |
Removes key entries.
key | Removed key |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
bool Sharpility.Collections.MultiDictionary< TKey, TValue >.Remove | ( | TKey | key, |
TValue | value | ||
) |
Removes key-value entry.
key | Removed key |
value | Removed value |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
ICollection<TValue> Sharpility.Collections.MultiDictionary< TKey, TValue >.RemoveAll | ( | TKey | key | ) |
Removes all values at given key.
key | Removed keyh |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
ICollection<TValue> Sharpility.Collections.MultiDictionary< TKey, TValue >.ReplaceValues | ( | TKey | key, |
IEnumerable< TValue > | values | ||
) |
Replaces all values by given key.
key | Key value |
values | Values to replace |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
IDictionary<TKey, ICollection<TValue> > Sharpility.Collections.MultiDictionary< TKey, TValue >.ToDictionary | ( | ) |
Converts multi dictionary to regular dictionary.
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
int Sharpility.Collections.MultiDictionary< TKey, TValue >.ValuesCount | ( | TKey | key | ) |
Returns number of all values stored by given key.
key | Key |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
int Sharpility.Collections.MultiDictionary< TKey, TValue >.Count [get] |
Returns number of all values.
Implemented in Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >, and Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >.
ICollection<KeyValuePair<TKey, TValue> > Sharpility.Collections.MultiDictionary< TKey, TValue >.Entries [get] |
Returns all entries.
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
bool Sharpility.Collections.MultiDictionary< TKey, TValue >.IsEmpty [get] |
Checks is dictionary is emtpy.
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
ISet<TKey> Sharpility.Collections.MultiDictionary< TKey, TValue >.Keys [get] |
Returns set of all keys.
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
ICollection<KeyValuePair<TKey, ICollection<TValue> > > Sharpility.Collections.MultiDictionary< TKey, TValue >.MultiEntries [get] |
Returns entries with multiple values for given key.
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
ICollection<TValue> Sharpility.Collections.MultiDictionary< TKey, TValue >.this[TKey key] [get] |
Returns all values mapped by given key.
key | Key |
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.
ICollection<TValue> Sharpility.Collections.MultiDictionary< TKey, TValue >.Values [get] |
Returns all values.
Implemented in Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >, and Sharpility.Collections.ImmutableMultiDictionary< TKey, TValue >.