|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
X - the type of elements in the domain of the relationY - the type of elements in the range of the relationpublic interface ConcurrentRelation<X,Y>
Provide a mathematical relation which is notionally a set of ordered pairs. It represents a relationship between the members of two sets: the domain and the range.
| 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. |
java.util.Set<Y> |
ran()
Return the range of the relation. |
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. |
| Method Detail |
|---|
boolean add(X x,
Y y)
x - y -
boolean remove(X x,
Y y)
x - y -
boolean contains(X x,
Y y)
x - y -
java.util.Set<X> dom()
java.util.Set<Y> ran()
java.util.Set<Y> relationalImage(java.util.Set<X> xset)
xset - a set of X's
void domSubtract(java.util.Set<X> xset)
xset - a set of X's
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||