Java.Util.IdentityHashMap Class
IdentityHashMap is a variant on HashMap which tests equality by reference instead of equality by value.

See Also: IdentityHashMap Members

Syntax

[Android.Runtime.Register("java/util/IdentityHashMap", DoNotGenerateAcw=true)]
public class IdentityHashMap : AbstractMap, Java.IO.ISerializable, Java.Lang.ICloneable, IDisposable

Remarks

IdentityHashMap is a variant on HashMap which tests equality by reference instead of equality by value. Basically, keys and values are compared for equality by checking if their references are equal rather than by calling the "equals" function.

Note: This class intentionally violates the general contract of Map's on comparing objects by their equals method.

IdentityHashMap uses open addressing (linear probing in particular) for collision resolution. This is different from HashMap which uses Chaining.

Like HashMap, IdentityHashMap is not thread safe, so access by multiple threads must be synchronized by an external mechanism such as Collections.synchronizedMap.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1