|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractSet<DuDeObject> de.hpi.fgis.dude.postprocessor.NaiveTransitiveClosureGenerator.TransitiveClosure
protected class NaiveTransitiveClosureGenerator.TransitiveClosure
TransitiveClosure
represents one transitive closure.
Constructor Summary | |
---|---|
NaiveTransitiveClosureGenerator.TransitiveClosure(DuDeObjectPair firstPair)
Initializes a NaiveTransitiveClosureGenerator.TransitiveClosure . |
Method Summary | |
---|---|
void |
add(DuDeObjectPair pair)
Adds the elements of the passed pair to the transitive closure. |
boolean |
contains(DuDeObject object)
Checks whether the passed DuDeObject is already member of the transitive closure. |
boolean |
contains(DuDeObjectPair pair)
Checks whether at least one element of the pair is already within this transitive closure. |
Iterator<DuDeObject> |
iterator()
|
void |
merge(NaiveTransitiveClosureGenerator.TransitiveClosure closure)
Merges the passed TransitiveClosure with the current one. |
int |
size()
|
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray |
Constructor Detail |
---|
public NaiveTransitiveClosureGenerator.TransitiveClosure(DuDeObjectPair firstPair)
NaiveTransitiveClosureGenerator.TransitiveClosure
.
firstPair
- The first pair that will be added.Method Detail |
---|
public boolean contains(DuDeObjectPair pair)
pair
- The pair whose elements shall be checked.
true
, if one of the elements is already member of the transitive closure; otherwise false
.public boolean contains(DuDeObject object)
DuDeObject
is already member of the transitive closure.
object
- The DuDeObject
that shall be checked.
true
, if this object is already member of the transitive closure; otherwise false
.public void add(DuDeObjectPair pair)
pair
- The pair whose elements shall be added.public void merge(NaiveTransitiveClosureGenerator.TransitiveClosure closure)
TransitiveClosure
with the current one.
closure
- The TransitiveClosure
that shall be merged with the current one.public Iterator<DuDeObject> iterator()
iterator
in interface Iterable<DuDeObject>
iterator
in interface Collection<DuDeObject>
iterator
in interface Set<DuDeObject>
iterator
in class AbstractCollection<DuDeObject>
public int size()
size
in interface Collection<DuDeObject>
size
in interface Set<DuDeObject>
size
in class AbstractCollection<DuDeObject>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |