Class DoubleKeyMap<Key1,Key2,Value>
- java.lang.Object
-
- org.eclipse.persistence.internal.libraries.antlr.runtime.misc.DoubleKeyMap<Key1,Key2,Value>
-
public class DoubleKeyMap<Key1,Key2,Value> extends java.lang.ObjectSometimes 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 Constructor Description DoubleKeyMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<Key2,Value>get(Key1 k1)Valueget(Key1 k1, Key2 k2)java.util.Set<Key1>keySet()get all primary keysjava.util.Set<Key2>keySet(Key1 k1)get all secondary keys associated with a primary keyValueput(Key1 k1, Key2 k2, Value v)java.util.Collection<Value>values()java.util.Collection<Value>values(Key1 k1)Get all values associated with primary key
-
-
-
Method Detail
-
values
public java.util.Collection<Value> values(Key1 k1)
Get all values associated with primary key
-
keySet
public java.util.Set<Key1> keySet()
get all primary keys
-
keySet
public java.util.Set<Key2> keySet(Key1 k1)
get all secondary keys associated with a primary key
-
values
public java.util.Collection<Value> values()
-
-