class WeakHashMap

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

class WeakHashMap[K, E](val override underlying : java.util.WeakHashMap[K, E])
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
Additional Constructor Summary
def this : WeakHashMap[K, E]
Method Summary
override def clone : WeakHashMap[K, E]
Return a clone of this map.
Methods inherited from MapWrapper
size, isEmpty, clear, put, get, ++=, 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, <<, readOnly, +=, incl, excl
Methods inherited from Map
getOrElse, apply, isDefinedAt, values, default, mapElements, stringPrefix
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
Methods inherited from MutableIterable
removeAll, --, -, retainOnly, retainAll, size0
Methods inherited from Collection
Methods inherited from Iterable
concat, ++, map, flatMap, filter, partition, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toSeq, toStream, mkString, mkString, mkString, addString, 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]

Method Details
override def clone : WeakHashMap[K, E]
Return a clone of this map.
a map with the same elements.