|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openflow.util.RefTrack<REF_TO,REF_FROM>
public class RefTrack<REF_TO,REF_FROM>
Tracks which objects refer to some object.
| Field Summary | |
|---|---|
REF_TO |
obj
the object being tracked |
| Constructor Summary | |
|---|---|
RefTrack(REF_TO objToTrack,
REF_FROM ref)
Construct a RefTrack with one object referring to another. |
|
| Method Summary | |
|---|---|
void |
addRef(REF_FROM o)
Adds a reference to obj |
boolean |
removeRef(REF_FROM o)
Removes the reference o and returns true if obj no longer has any references to it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final REF_TO obj
| Constructor Detail |
|---|
public RefTrack(REF_TO objToTrack,
REF_FROM ref)
objToTrack - the object whose referants are being trackedref - an object which refers to objToTrack| Method Detail |
|---|
public void addRef(REF_FROM o)
public boolean removeRef(REF_FROM o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||