class WeakHashMap

[source: scala/collection/jcl/WeakHashMap.scala]

class WeakHashMap[K, E](val override underlying : WeakHashMap)
extends MapWrapper[K, E]

A map that is backed by a Java weak hash map, whose keys are maintained as weak references.

Because keys are weak references, the garbage collector can collect them if they are not referred to elsewhere.

Useful for implementing caches.

Sean McDirmid
Direct Known Subclasses:

Additional Constructor Summary
def this : WeakHashMap[K, E]
Methods inherited from MapWrapper
size, isEmpty, clear, put, get, putAll, removeKey, contains, keySet, valueSet, elements, toString, hashCode, equals
Methods inherited from Map
keys, has, update, +, +=, -, remove, -=, projection, lense, filterKeys
Methods inherited from Map
+=, ++=, ++=, +, ++, ++, -=, --=, --=, -, --, --, getOrElseUpdate, transform, retain, <<, clone, +=, incl, excl
Methods inherited from Map
getOrElse, apply, isDefinedAt, values, default, mapElements
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
Methods inherited from MutableIterable
removeAll, --, -, retain, retainAll, size0
Methods inherited from Collection
toArray, stringPrefix, equalWith
Methods inherited from Iterable
concat, ++, map, flatMap, filter, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize
Methods inherited from AnyRef
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Additional Constructor Details
def this : WeakHashMap[K, E]