|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rapla.components.util.WeakReferenceList
public class WeakReferenceList
This list internaly uses WeakReferences that doesnt prevent the
list-entrys from being garbage-collected. Use this list if you
cannot determine when the objects in the list are no longer in use
and should be taken out of the list.
Parts taken from QueuedWRVectorModel.java written by Raimond
Reichert for JavaWorld
Constructor Summary | |
---|---|
WeakReferenceList()
|
Method Summary | |
---|---|
void |
add(Object o)
add an object to the list. |
void |
cleanUp()
Polls the reference queue, and removes all references on it from the list |
Iterator |
iterator()
Use this Iterator to safely iterate the list. |
void |
remove(Object o)
remove an Object from list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WeakReferenceList()
Method Detail |
---|
public void cleanUp()
public void add(Object o)
public void remove(Object o)
public Iterator iterator()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |