Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Classes | Public Member Functions | List of all members
Lucene.Net.Util.IdentityDictionary< TKey, TValue > Class Template Reference

A class that mimics Java's IdentityHashMap in that it determines object equality solely on ReferenceEquals rather than (possibly overloaded) object.Equals(). More...

Inherits Dictionary< TKey, TValue >.

Inherited by Lucene.Net.Util.IdentityDictionary< TKey, TValue >.IdentityComparer.

Public Member Functions

 IdentityDictionary (IDictionary< TKey, TValue > other)
 
 IdentityDictionary (int capacity)
 
 IdentityDictionary ()
 

Detailed Description

A class that mimics Java's IdentityHashMap in that it determines object equality solely on ReferenceEquals rather than (possibly overloaded) object.Equals().

NOTE: Java's documentation on IdentityHashMap says that it also uses ReferenceEquals on it's Values as well. This class does not follow this behavior

Template Parameters
TKeyThe type of the keys in the dictionary
TValueThe type of the values in the dictionary

Definition at line 40 of file IdentityDictionary.cs.

Constructor & Destructor Documentation

Lucene.Net.Util.IdentityDictionary< TKey, TValue >.IdentityDictionary ( IDictionary< TKey, TValue >  other)

Definition at line 42 of file IdentityDictionary.cs.

Lucene.Net.Util.IdentityDictionary< TKey, TValue >.IdentityDictionary ( int  capacity)

Definition at line 45 of file IdentityDictionary.cs.

Lucene.Net.Util.IdentityDictionary< TKey, TValue >.IdentityDictionary ( )

Definition at line 48 of file IdentityDictionary.cs.


The documentation for this class was generated from the following file: