Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
12c (12.2.1.4.0)
E90869-02
Initializes a new instance of the HashDictionary
class using the specified initial capacity and
IEqualityComparer, and the
default load factor.
Namespace: Tangosol.Util.Collections
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)
Syntax
C# |
---|
public HashDictionary( int capacity, IEqualityComparer equalityComparer ) |
Parameters
- capacity
- Type: System..::..Int32
The approximate number of elements the HashDictionary object can initially contain.
- equalityComparer
- Type: System.Collections..::..IEqualityComparer
The IEqualityComparer object that defines the hash code provider and the comparer to use with the HashDictionary. -or- null to use the default hash code provider and the default comparer. The default hash code provider is each key's implementation of GetHashCode()()()() and the default comparer is each key's implementation of Equals(Object).
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | capacity is less than zero. |