HashMap
Object Hierarchy:
Gee.HashMap
Gee.HashMap
Gee.HashMap
Gee.AbstractMap
Gee.AbstractMap
Gee.AbstractMap->Gee.HashMap
GLib.Object
GLib.Object
GLib.Object->Gee.AbstractMap
Gee.Traversable
Gee.Traversable
Gee.Traversable->Gee.AbstractMap
Gee.Iterable
Gee.Iterable
Gee.Iterable->Gee.AbstractMap
Gee.Map
Gee.Map
Gee.Map->Gee.AbstractMap
Description:
public class HashMap <
K ,
V > :
AbstractMap <
K ,
V >
Hash table implementation of the Map interface.
This implementation is better fit for highly heterogeneous key values. In case of high key hashes redundancy or higher amount of data
prefer using tree implementation like TreeMap .
See also:
TreeMap
Content:
Properties:
public override Set <Entry <K ,V >> entries { owned get ; }
The read-only view of the entries of this map.
public EqualDataFunc <K > key_equal_func { get ; }
The keys' equality testing function.
public HashDataFunc <K > key_hash_func { get ; }
The keys' hash function.
public override Set <K > keys { owned get ; }
The read-only view of the keys of this map.
public override bool read_only { get ; }
Specifies whether this collection can change - i.e. whether
set , remove etc. are legal
operations.
public override int size { get ; }
The number of items in this map.
public EqualDataFunc <V > value_equal_func { get ; }
The values' equality testing function.
public override Collection <V > values { owned get ; }
The read-only view of the values of this map.
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 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 MapIterator <K ,V > map_iterator ()
Returns an iterator for this map.
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.AbstractMap
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gee.Traversable
All known members inherited from interface Gee.Iterable
All known members inherited from interface Gee.Map