The key/value pair of a IMap<TKey,TValue>.
Inheritance Hierarchy
MapEntry
Type Parameters
- TKey
- The type of the key element.
- TValue
- The type of the value element.
Type Details
- yfiles module
- core
- yfiles-umd modules
- All modules
- Legacy UMD name
- yfiles.collections.MapEntry
Constructors
Properties
Methods
Returns whether this instance and the given obj
are equal.
Remarks
Two instances of this class are considered equal if they have the same values for each property.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- obj - Object
- The other instance to test for equality.
Returns
- ↪boolean
true
if both objects are equal.
Returns a hash code for this object.
Remarks
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.
Returns
- ↪number
- the hash code for this object