public class IdentityPairMap<T,V> extends java.lang.Object
Constructor and Description |
---|
IdentityPairMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the map.
|
boolean |
contains(ImmutablePair<T,T> pair)
Returns whether the pair is contained.
|
boolean |
contains(T t1,
T t2)
Returns whether the pair (t1, t2) is contained.
|
V |
get(ImmutablePair<T,T> pair)
Returns the element stored at the pair or
null if not
stored. |
V |
get(T t1,
T t2)
Returns the element stored at pair (t1, t2) or
null if not
stored. |
void |
put(ImmutablePair<T,T> pair,
V value)
Adds the given value for the given pair.
|
void |
put(T t1,
T t2,
V value)
Adds the given value for the given pair.
|
public IdentityPairMap()
public void put(ImmutablePair<T,T> pair, V value)
public boolean contains(ImmutablePair<T,T> pair)
public V get(ImmutablePair<T,T> pair)
null
if not
stored.public void clear()