MultiMap
Object Hierarchy:
Description:
[
GenericAccessors ]
public interface MultiMap<
K,
V> :
Object
A map with multiple values per key.
All known implementing classes:
Content:
Properties:
- public Type key_type { get; }
The type of the keys in this multimap.
- public abstract bool read_only { get; }
Specifies whether this collection can change - i.e. whether
set,
remove etc. are legal operations.
- public virtual MultiMap<K,V> read_only_view { owned get; }
- public abstract int size { get; }
The number of key/value pairs in this map.
- public Type value_type { get; }
The type of the values in this multimap.
Methods:
- public abstract Collection<V> @get (K key)
Returns the values for the specified key in this map.
- public abstract void @set (K key, V value)
Inserts a key/value pair into this map.
- public abstract void clear ()
Removes all items from this collection.
- public abstract bool contains (K key)
Determines whether this map contains the specified key.
- public abstract MultiSet<K> get_all_keys ()
Returns the keys of this multimap as a read-only set.
- public abstract Set<K> get_keys ()
Returns the keys of this multimap as a read-only set.
- public abstract Collection<V> get_values ()
Returns the values of this map as a read-only collection.
- public abstract MapIterator<K,V> map_iterator ()
Returns an iterator for this map.
- public abstract bool remove (K key, V value)
Removes the specified key/value pair from this multimap.
- public abstract bool remove_all (K key)
Removes the specified key and all the associated values from this multimap.
Inherited Members:
All known members inherited from class GLib.Object