|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.hp.hpl.jena.util.iterator.Relation
A sparse 2 dimensional array of boolean indexed by Object. Complete with transitive closure algorithm.
| Constructor Summary | |
Relation()
The empty Relation. |
|
| Method Summary | |
java.util.Set |
backward(java.lang.Object b)
The set of a such that a is related to b. |
void |
clear(java.lang.Object a,
java.lang.Object b)
a is now not related to b |
java.util.Set |
forward(java.lang.Object a)
The set of b such that a is related to b. |
boolean |
get(java.lang.Object a,
java.lang.Object b)
Is a related to b? |
java.util.Set |
getDiagonal()
The set of a such that a is related to a. |
java.util.Iterator |
iterator()
An Iterator over the pairs of the Relation. |
void |
set(java.lang.Object a,
java.lang.Object b)
a is now related to b |
void |
set11(java.lang.Object a,
java.lang.Object b)
Uniquely a is now related to uniquely b.
|
void |
set1N(java.lang.Object a,
java.lang.Object b)
Uniquely a is now related to b.
|
void |
setN1(java.lang.Object a,
java.lang.Object b)
a is now related to uniquely b.
|
void |
setNN(java.lang.Object a,
java.lang.Object b)
a is now related to b |
void |
transitiveClosure()
Takes this to its transitive closure. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Relation()
| Method Detail |
public void set(java.lang.Object a,
java.lang.Object b)
a is now related to b
public void set11(java.lang.Object a,
java.lang.Object b)
a is now related to uniquely b.
When this is called any other a related to this b is removed.
When this is called any other b related to this a is removed.
public void set1N(java.lang.Object a,
java.lang.Object b)
a is now related to b.
Many b's can be related to each a.
When this is called any other a related to this b is removed.
public void setN1(java.lang.Object a,
java.lang.Object b)
a is now related to uniquely b.
Many a's can be related to each b.
When this is called any other b related to this a is removed.
public void setNN(java.lang.Object a,
java.lang.Object b)
a is now related to b
public void clear(java.lang.Object a,
java.lang.Object b)
a is now not related to b
public boolean get(java.lang.Object a,
java.lang.Object b)
a related to b?
public void transitiveClosure()
public java.util.Set getDiagonal()
a such that a is related to a.
public java.util.Set forward(java.lang.Object a)
b such that a is related to b.
public java.util.Set backward(java.lang.Object b)
a such that a is related to b.
public java.util.Iterator iterator()
getKey(),
the second through getValue().
Map.Entry
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||