IBijectiveMap

Description

interface Tinman.Core.Collections.IBijectiveMap
<TLeft>
<TRight>

Derived from

IBijectiveMapConst<TLeft, TRight>

Extended by

BijectiveMap sealed

Base interface for classes that represent a bidirectional aka. bijective mapping between left and right value pairs.

Public / Methods

Clear


public method Clear → ()

Removes all key/value pairs from the map.

Put


public method Put → (2)

left in : TLeft

The left key (i.e. right value).

right in : TRight

The left value (i.e. right key).

Maps the given value to the specified key.

RemoveLeft


public method RemoveLeft → (1)

left in : TLeft

The key.

returns → TRight

The mapped value.

Removes the mapping for the given key.

RemoveRight


public method RemoveRight → (1)

right in : TRight

The key.

returns → TLeft

The mapped value.

Removes the mapping for the given key.