TreeMap
Object Hierarchy:
Description:
public class TreeMap<
K,
V> :
AbstractBidirSortedMap<
K,
V>
Left-leaning red-black tree implementation of the Map interface.
This implementation is especially well designed for large quantity of data. The (balanced) tree implementation insure that the set and
get methods are in logarithmic complexity.
See also:
HashMap
Content:
Properties:
Creation methods:
Methods:
- public override V @get (K key)
Returns the value of the specified key in this map.
- public override void @set (K key, V value)
Inserts a new key and value into this map.
- public override BidirMapIterator<K,V> bidir_map_iterator ()
Returns a bi-directional iterator for this map.
- public override void clear ()
Removes all items from this collection. Must not be called on read-
only collections.
- public override bool has (K key, V value)
Determines whether this map has the specified key/value entry.
- public override bool has_key (K key)
Determines whether this map has the specified key.
- public override SortedMap<K,V> head_map (K before)
Returns map containing pairs with key strictly lower the the argument.
- public override MapIterator<K,V> map_iterator ()
Returns an iterator for this map.
- public override SortedMap<K,V> sub_map (K after, K before)
Returns right-open map (i.e. containing all pair which key is strictly
lower then the second argument and equal or bigger then the first one).
- public override SortedMap<K,V> tail_map (K after)
Returns map containing pairs with key equal or larger then the
argument.
- public override bool unset (K key, out V value = null)
Removes the specified key from this map.
Inherited Members:
All known members inherited from class Gee.AbstractBidirSortedMap
All known members inherited from class Gee.AbstractSortedMap
All known members inherited from class Gee.AbstractMap
All known members inherited from class GLib.Object
All known members inherited from interface Gee.BidirSortedMap
All known members inherited from interface Gee.SortedMap
All known members inherited from interface Gee.Traversable
All known members inherited from interface Gee.Iterable
All known members inherited from interface Gee.Map