|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.BijectionMap<L,R>
public class BijectionMap<L,R>
Bijection map is a 1:1 binding of 2-tuples. For each binding one value has role "left" and the other one the role "right".
| Constructor Summary | |
|---|---|
BijectionMap()
|
|
| Method Summary | |
|---|---|
void |
addAll(BijectionMap<L,R> map)
addAll. |
void |
clear()
Clear all bindings |
boolean |
contains(L leftValue,
R rightValue)
Contains binding |
boolean |
containsLeft(L leftValue)
containsLeft. |
boolean |
containsRight(R rightValue)
containsRight. |
Set<Map.Entry<L,R>> |
getEntries()
getEntries. |
L |
getLeft(R rightValue)
Get left value with right key |
Set<L> |
getLeftSet()
Get all left values |
R |
getRight(L leftValue)
Get right value with left key |
Set<R> |
getRightSet()
Get all right values. |
boolean |
isEmpty()
isEmpty. |
void |
map(L leftValue,
R rightValue)
Add value to the map |
R |
removeWithLeft(L leftValue)
Remove a binding with left key |
L |
removeWithRight(R rightValue)
Remove a binding with right key |
boolean |
retainAllLeft(Collection<L> values)
retainAllLeft. |
boolean |
retainAllRight(Collection<R> values)
retainAllRight. |
int |
size()
Get the number of mappings |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BijectionMap()
| Method Detail |
|---|
public void addAll(BijectionMap<L,R> map)
addAll.
map - a BijectionMap object.public boolean retainAllLeft(Collection<L> values)
retainAllLeft.
values - a Collection object.
public boolean retainAllRight(Collection<R> values)
retainAllRight.
values - a Collection object.
public Set<Map.Entry<L,R>> getEntries()
getEntries.
Set object.public boolean containsLeft(L leftValue)
containsLeft.
leftValue - a L object.
public boolean containsRight(R rightValue)
containsRight.
rightValue - a R object.
public boolean contains(L leftValue,
R rightValue)
leftValue - a L object.rightValue - a R object.
public void map(L leftValue,
R rightValue)
leftValue - a L object.rightValue - a R object.public boolean isEmpty()
isEmpty.
public int size()
public L getLeft(R rightValue)
rightValue - a R object.
public R getRight(L leftValue)
leftValue - a L object.
public R removeWithLeft(L leftValue)
leftValue - a L object.
public L removeWithRight(R rightValue)
rightValue - a R object.
public Set<L> getLeftSet()
public Set<R> getRightSet()
public void clear()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||