|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.collections.CollectionUtils
Collection utility methods.
Method Summary | |
java.util.Map |
weakValueMap(java.util.Map t)
Returns the map wrapped so that it refers to the values via weak references, thus not keeping them from garbage collection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.util.Map weakValueMap(java.util.Map t)
Iteration order of the returned wrapper map, and the overall performance characterictics, are the same as those of the backing map.
It is required that the specified map is empty, and that it is not used directly after this method returns.
Note: the values stored in this map keep strong references to their keys. Therefore, using a WeakHashMap as a backing map will NOT yield a map with both weak keys and weak values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |