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.

Protected / Constructors

Map​Const​Base

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

Compare​Keys


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.

Equals​Keys


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.