|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.tum.cs.commons.collections.IdentityPairMap<T,V>
public class IdentityPairMap<T,V>
A map using (unordered) pairs as key which are compared by reference.
| Constructor Summary | |
|---|---|
IdentityPairMap()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdentityPairMap()
| Method Detail |
|---|
public void put(ImmutablePair<T,T> pair,
V value)
public void put(T t1,
T t2,
V value)
public boolean contains(ImmutablePair<T,T> pair)
public boolean contains(T t1,
T t2)
public V get(ImmutablePair<T,T> pair)
null if not
stored.
public V get(T t1,
T t2)
null if not
stored.
public void clear()
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||