diff options
Diffstat (limited to 'src/dotnet-library/scala/collection/jcl/IdentityHashMap.scala')
-rw-r--r-- | src/dotnet-library/scala/collection/jcl/IdentityHashMap.scala | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/dotnet-library/scala/collection/jcl/IdentityHashMap.scala b/src/dotnet-library/scala/collection/jcl/IdentityHashMap.scala new file mode 100644 index 0000000000..a56a49c844 --- /dev/null +++ b/src/dotnet-library/scala/collection/jcl/IdentityHashMap.scala @@ -0,0 +1,22 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2006-2007, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// $Id$ + +package scala.collection.jcl; + +/** A map that is backed by a Java identity hash map, which compares keys + * by their reference-based identity as opposed to using equals and hashCode. + * An identity hash map will often perform better than traditional hash map + * because it can utilize linear probing. + * + * @author Sean McDirmid + */ +class IdentityHashMap[K,E](override val underlying : java.util.IdentityHashMap) extends MapWrapper[K,E] { + def this() = this(new java.util.IdentityHashMap); +} |