C

MapEntry<TKey, TValue>

The key/value pair of a IMap<TKey, TValue>.
Inheritance Hierarchy

Members

No filters for this type

Constructors

Creates a new instance with the given key and value.

Parameters

key: TKey
The key for this pair.
value: TValue
The value for this pair.

Properties

The key for this key/value pair.
readonlyfinal
The value for this key/value pair.
readonlyfinal

Methods

Returns whether this instance and the given obj are equal.
Two instances of this class are considered equal if they have the same values for each property.
final

Parameters

obj: any
The other instance to test for equality.

Return Value

boolean
true if both objects are equal.
Returns a hash code for this object.

The hash code is a numeric value that can be used to treat this object as a key in a hash table or similar data structure.

Two objects that are considered equal must have the same hash code. However, the reverse does not hold and two objects having the same hash code don't have to be equal. Ideally, the hash code should be roughly uniformly-distributed to prevent hash tables from performing poorly. Calculating the hash code is also a potentially frequent operation and should therefore be fast.

final

Return Value

number
the hash code for this object