Package org.antlr.v4.runtime.misc
Class DoubleKeyMap<Key1,Key2,Value>
java.lang.Object
org.antlr.v4.runtime.misc.DoubleKeyMap<Key1,Key2,Value>
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkeySet()
get all primary keysget all secondary keys associated with a primary keyGet all values associated with primary key
-
Constructor Details
-
DoubleKeyMap
public DoubleKeyMap()
-
-
Method Details
-
put
-
get
-
get
-
values
Get all values associated with primary key -
keySet
get all primary keys -
keySet
get all secondary keys associated with a primary key
-