MapConstBase

Description

abstract class Tinman.Core.Collections.MapConstBase
<TKey>
<TValue>

Derived from

BagConstBase<MapEntry<TKey, TValue>> abstract
IMapConst<TKey, TValue>

Extended by

IdentityMap sealed
Map sealed
TreeMap sealed

Abstract base class for IMapConst implementations.

Public / Methods

EqualsEntry


public method EqualsEntry → (2)

in : MapEntry<TKey, TValue>

The first map entry.

in : MapEntry<TKey, TValue>

The second map entry.

returns → bool

true if in and in are equal,
false if they are different.

Compares the given map entries for equality.

Map entry keys are compared with the equality delegate of this map object, map entry values are compared with SystemUtilGeneric.EqualsDefault.

Protected / Constructors

MapConstBase

3 overloads


protected constructor MapConstBase1 → ()

Creates a new instance of MapConstBase.


protected constructor MapConstBase2 → (1)

compare in : CompareDelegate<TKey>

The compare delegate.

Creates a new instance of MapConstBase.


protected constructor MapConstBase3 → (1)

equals in : EqualsDelegate<TKey>

The equality delegate.

Creates a new instance of MapConstBase.

Protected / Methods

CompareKeys


protected method CompareKeys → (2)

in : TKey

First key.

in : TKey

Second key.

returns → int32

if in is less than in.
[=0] if in is equal to in.
[>0] if in is greater than in.

Compares the given keys.

The default implementation invokes the CompareDelegate that has been specified for this dictionary.

EqualsKeys


protected method EqualsKeys → (2)

in : TKey

First key.

in : TKey

Second key.

returns → bool

true if the keys are equal, false if not.

Checks if the given keys are equal.

The default implementation invokes the EqualsDelegate that has been specified for this dictionary. If a CompareDelegate has been given instead, it will be invoked and its return value tested against 0.