|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<T>
org.riotfamily.common.collection.WeakReferenceCollection<T>
public class WeakReferenceCollection<T>
Collection whose values are stored as weak references
.
Constructor Summary | |
---|---|
WeakReferenceCollection()
|
Method Summary | |
---|---|
boolean |
add(T value)
Adds a WeakReference referring to the given value to the internal
collection of references. |
void |
clear()
Clears the collection. |
Iterator<T> |
iterator()
Returns an iterator over all non-cleared values. |
void |
purge()
Removes all cleared references from the internal collection. |
int |
size()
Returns the number of references. |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Constructor Detail |
---|
public WeakReferenceCollection()
Method Detail |
---|
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in class AbstractCollection<T>
public int size()
purge()
before.
size
in interface Collection<T>
size
in class AbstractCollection<T>
public boolean add(T value)
WeakReference
referring to the given value to the internal
collection of references.
add
in interface Collection<T>
add
in class AbstractCollection<T>
public void clear()
clear
in interface Collection<T>
clear
in class AbstractCollection<T>
public void purge()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |