|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.springsource.util.math.ConcurrentMapRelation<X,Y>
public final class ConcurrentMapRelation<X,Y>
Field Summary | |
---|---|
private java.util.concurrent.ConcurrentMap<X,ConcurrentSet<Y>> |
rel
|
Constructor Summary | |
---|---|
ConcurrentMapRelation()
|
Method Summary | |
---|---|
boolean |
add(X x,
Y y)
Add the given pair (x, y) to the relation. |
boolean |
contains(X x,
Y y)
Return true if and only if the given pair (x, y) is present in the relation. |
java.util.Set<X> |
dom()
Return the domain of the relation. |
void |
domSubtract(java.util.Set<X> xset)
Remove all the pairs (x, y) where x is in the given set of X's. |
private void |
ensure(X x)
|
java.util.Set<Y> |
ran()
The result is potentially blurred in the presence of concurrency. |
java.util.Set<Y> |
relationalImage(java.util.Set<X> xset)
Return the relational image of a set of X's. |
boolean |
remove(X x,
Y y)
Remove the given pair (x, y) from the relation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.concurrent.ConcurrentMap<X,ConcurrentSet<Y>> rel
Constructor Detail |
---|
public ConcurrentMapRelation()
Method Detail |
---|
public boolean add(X x, Y y)
ConcurrentRelation
add
in interface ConcurrentRelation<X,Y>
public boolean contains(X x, Y y)
ConcurrentRelation
contains
in interface ConcurrentRelation<X,Y>
public java.util.Set<X> dom()
ConcurrentRelation
dom
in interface ConcurrentRelation<X,Y>
public java.util.Set<Y> ran()
ran
in interface ConcurrentRelation<X,Y>
public boolean remove(X x, Y y)
ConcurrentRelation
remove
in interface ConcurrentRelation<X,Y>
private void ensure(X x)
public java.util.Set<Y> relationalImage(java.util.Set<X> xset)
ConcurrentRelation
relationalImage
in interface ConcurrentRelation<X,Y>
xset
- a set of X's
public void domSubtract(java.util.Set<X> xset)
ConcurrentRelation
domSubtract
in interface ConcurrentRelation<X,Y>
xset
- a set of X's
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |