Package com.sun.javafx.util
Class WeakReferenceQueue<E>
java.lang.Object
com.sun.javafx.util.WeakReferenceQueue<E>
This is a helper class for handling weak references across all devices.
We tried to use WeakHashMap, but it isn't available on mobile. We tried to
add it to mobile, but it requires ReferenceQueue and it appears that
ReferenceQueue requires support from the VM which we don't know that we
have on mobile. So this class attempts to lesson the likelyhood of
memory leaks.
As we abandoned mobile, we considered removal of this class. But replacement
by WeakHashMap is not always possible as we use mutable elements. At least
it was now possible to optimize this class using the ReferenceQueue.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
WeakReferenceQueue
public WeakReferenceQueue()
-
-
Method Details
-
add
-
remove
-
cleanup
public void cleanup() -
iterator
-