public class ConcurrentBijectionMap<L,R> extends Object
| Constructor and Description |
|---|
ConcurrentBijectionMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(ConcurrentBijectionMap<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() |
public void addAll(ConcurrentBijectionMap<L,R> map)
addAll.
map - a ConcurrentBijectionMap object.public void clear()
public boolean contains(L leftValue, R rightValue)
leftValue - a L object.rightValue - a R object.public boolean containsLeft(L leftValue)
containsLeft.
leftValue - a L object.public boolean containsRight(R rightValue)
containsRight.
rightValue - a R object.public L getLeft(R rightValue)
rightValue - a R object.public R getRight(L leftValue)
leftValue - a L object.public boolean isEmpty()
isEmpty.
public void map(L leftValue, R rightValue)
leftValue - a L object.rightValue - a R object.public R removeWithLeft(L leftValue)
leftValue - a L object.public L removeWithRight(R rightValue)
rightValue - a R object.public boolean retainAllLeft(Collection<L> values)
retainAllLeft.
values - a Collection object.public boolean retainAllRight(Collection<R> values)
retainAllRight.
values - a Collection object.public int size()
Copyright © 2026. All rights reserved.