|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.util.WeakSet
A weak set is an unordered collection of weak references to objects. Any object within this set is elligable for garbage collection if it is not pointed to by at least one non-weak reference.
| Constructor Summary | |
WeakSet()
|
|
| Method Summary | |
void |
add(Object what)
This adds a reference to the set. |
void |
clear()
This removes all references in the set. |
boolean |
contains(Object who)
Checks if an Object is contained in the Weak Set. |
int |
count()
This counts the number of live references. |
Iterator |
entries()
Get an Iterator to go through all the entries. |
Object |
find(ObjectFinder f)
This finds an object in the reference list using the ObjectFinder. |
Object[] |
getRefs()
This returns an array containing the references. |
boolean |
isEmpty()
If this returns true - it indicates that there are definitely no entries. |
void |
remove(Object what)
This removes a reference from the set if it is in it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Constructor Detail |
public WeakSet()
| Method Detail |
public void add(Object what)
public void remove(Object what)
public void clear()
public Object[] getRefs()
public Object find(ObjectFinder f)
public boolean contains(Object who)
public int count()
public boolean isEmpty()
public Iterator entries()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||