DoubleKeyMap

Sometimes we need to map a key to a value but key is two pieces of data. This nested hash table saves creating a single key each time we access map; avoids mem creation.

Members

Functions

get
Nullable!V get(K1 k1, K2 k2)
Undocumented in source. Be warned that the author may not have intended to support it.
get
V[K2] get(K1 k1)
Undocumented in source. Be warned that the author may not have intended to support it.
keySet
K1[] keySet()

get all primary keys

keySet
K2[] keySet(K1 k1)

Get all secondary keys associated with a primary key.

put
V put(K1 k1, K2 k2, V v)
Undocumented in source. Be warned that the author may not have intended to support it.
values
V[] values(K1 k1)

Get all values associated with a primary key.

Variables

data
V[K1][K2] data;
Undocumented in source.

Meta