scala.collection.jcl

class IdentityHashMap

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

class IdentityHashMap[K, E](val override underlying : java.util.IdentityHashMap[K, E])
extends MapWrapper[K, E]
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
Additional Constructor Summary
def this : IdentityHashMap[K, E]
Method Summary
override def clone : IdentityHashMap[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
compose
Methods inherited from MutableIterable
removeAll, --, -, retainOnly, retainAll, size0
Methods inherited from Collection
toArray
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 : IdentityHashMap[K, E]

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