Class std.cont.Map
Synopsis
public abstract class Map< K, V > extends Container< KeyValuePair< K, V > >
Represents an abstract map, mapping keys to values.
Fields
Constructors
Methods
protected abstract V get(K key);
Get the value corresponding to the specified key. Throw std.cont.KeyError
if the key has no associated value.
protected abstract void set(K key,V value);
Set the value corresponding to a key to the specified value.
public final V opGet(K key);
Get the value corresponding to the specified key. Throw std.cont.KeyError
if the key has no associated value.
public final void opSet(K key,V value);
Set the value corresponding to a key.
public bool hasKey(K key);
Returns true
if the map contains the specified key.
public abstract void removeKey(K key);
Remove the specified key.
public Set< K > getKeySet();
Return the set of keys in this map.