BagConstBase

Description

abstract class Tinman.Core.Collections.BagConstBase<T>

Derived from

EnumerableBase<T> abstract
IBagConst<T>

Extended by

BagBase abstract
EmptySet sealed
MapConstBase abstract
VectorConstBase abstract

Abstract base class for IBagConst implementations.

Protected / Constructors

Bag​Const​Base

3 overloads


protected constructor BagConstBase1 → ()

Creates a new instance of BagConstBase.


protected constructor BagConstBase2 → (1)

equals in : EqualsDelegate<T>

The equality delegate.

Creates a new instance of BagConstBase.


protected constructor BagConstBase3 → (1)

compare in : CompareDelegate<T>

The compare delegate.

Creates a new instance of BagConstBase.

Protected / Methods

Compare​Elements


protected method CompareElements → (2)

in : T

First collection element.

in : T

Second collection element.

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 collection elements.

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

Equals​Elements


protected method EqualsElements → (2)

in : T

First collection element.

in : T

Second collection element.

returns → bool

true if the collection elements are equal, false if not.

Checks if the given collection elements are equal.

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