|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.frag.umlplugin.classcloud.BidirectionalMultiMap<E1,E2>
public class BidirectionalMultiMap<E1,E2>
Bidirectional map that provides access to pairs of values that each can be used as key or value.
Constructor Summary | |
---|---|
BidirectionalMultiMap()
|
Method Summary | |
---|---|
void |
add(E1 e1,
E2 e2)
Adds an element pair. |
int |
backwardKeyCount()
Gets number of different elements that act as second element in element pairs. |
java.util.Collection<E2> |
backwardKeys()
Gets collection of all elements that are second element of element pairs. |
void |
clear()
Clears this map. |
int |
forwardKeyCount()
Gets number of different elements that act as first element in element pairs. |
java.util.Collection<E1> |
forwardKeys()
Gets collection of all elements that are first element of element pairs. |
java.util.Set<E1> |
getBackward(E2 key)
Gets other element of element pair for given second element. |
java.util.Set<E2> |
getForward(E1 key)
Gets other element of element pair for given first element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BidirectionalMultiMap()
Method Detail |
---|
public void add(@NotNull E1 e1, @NotNull E2 e2)
e1
- first element of paire2
- second element of pair@Nullable public java.util.Set<E2> getForward(@NotNull E1 key)
key
- first element of pair that acts as key.
@Nullable public java.util.Set<E1> getBackward(@NotNull E2 key)
key
- second element of pair that acts as key.
@NotNull public java.util.Collection<E1> forwardKeys()
@NotNull public java.util.Collection<E2> backwardKeys()
public int forwardKeyCount()
public int backwardKeyCount()
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |