ImmutableDictionary<T,U>

Overview

Dictionary class that maps a given key to a value. Readonly version.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Mapped to:


 

ContainsKey

Returns true if this key is contained in the dictionary.

 

method ContainsKey(Key: nullable T): Boolean

 

Boolean ContainsKey(T? Key)

 

func ContainsKey(_ Key: T?) -> Boolean

 

Boolean ContainsKey(T Key)

 

Function ContainsKey(Key As T?) As Boolean

Parameters:

  • Key:

ContainsValue

Returns true if this value is contained in the dictionary.

 

method ContainsValue(Value: nullable U): Boolean

 

Boolean ContainsValue(U? Value)

 

func ContainsValue(_ Value: U?) -> Boolean

 

Boolean ContainsValue(U Value)

 

Function ContainsValue(Value As U?) As Boolean

Parameters:

  • Value:

Count

Returns the nr of items in this dictionary.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

 

ReadOnly Property Count() As Int32

ForEach

Iterate all items in this list and trigger the callback for it.

 

method ForEach(Action: Action<RemObjects.Elements.RTL.KeyValuePair<T,U>>)

 

void ForEach(Action<RemObjects.Elements.RTL.KeyValuePair<T,U>> Action)

 

func ForEach(_ Action: Action<RemObjects.Elements.RTL.KeyValuePair<T,U>>)

 

void ForEach(Action<RemObjects.Elements.RTL.KeyValuePair<T,U>> Action)

 

Sub ForEach(Action As Action<RemObjects.Elements.RTL.KeyValuePair<T,U>>)

Parameters:

  • Action:

GetSequence

Returns an iterator for this dictionary, while iterating changes in the dictionary will cause an exception in the iterator.

 

// .NET, .NET Core 6.0, .NET Standard 2.0
method GetSequence: IEnumerable<KeyValuePair<T, U>>
// Island
method GetSequence: IEnumerable<RemObjects.Elements.RTL.KeyValuePair<T,U>>

 

// .NET, .NET Core 6.0, .NET Standard 2.0
IEnumerable<KeyValuePair<T, U>> GetSequence()
// Island
IEnumerable<RemObjects.Elements.RTL.KeyValuePair<T,U>> GetSequence()

 

// Toffee
func GetSequence() -> INSFastEnumeration<RemObjects.Elements.RTL.KeyValuePair<T,U>>
// ToffeeV2
func GetSequence() -> IEnumerable<KeyValuePair<T, U>>

 

Iterable<KeyValuePair<T, U>> GetSequence()

 

// .NET, .NET Core 6.0, .NET Standard 2.0
Function GetSequence() As IEnumerable<KeyValuePair<T, U>>
// Island
Function GetSequence() As IEnumerable<RemObjects.Elements.RTL.KeyValuePair<T,U>>

Item

Get an item by it's key, or null if it's not present.

 

property Item[Key: nullable T]: nullable U read;

 

U? Item[T? Key] { get; }

 

subscript Item(_ Key: T?) -> U? { get{} }

 

U Item[T Key] { __get; }

 

ReadOnly Property Item(Key As T?) As U?

Keys

Returns a keys interator.

 

property Keys: not nullable RemObjects.Elements.RTL.ImmutableList<T> read;

 

RemObjects.Elements.RTL.ImmutableList<T>! Keys { get; }

 

var Keys: RemObjects.Elements.RTL.ImmutableList<T> { get{} }

 

RemObjects.Elements.RTL.ImmutableList<T> Keys { __get; }

 

ReadOnly Property Keys() As RemObjects.Elements.RTL.ImmutableList<T>

MutableVersion

creates a copy and returns this as a mutable version.

 

method MutableVersion: not nullable Dictionary<T, U>

 

Dictionary<T, U>! MutableVersion()

 

func MutableVersion() -> Dictionary<T, U>

 

Dictionary<T, U> MutableVersion()

 

Function MutableVersion() As Dictionary<T, U>

Values

Iterator for all values in this dictionary.

 

property Values: not nullable IEnumerable<U> read;

 

IEnumerable<U>! Values { get; }

 

// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var Values: IEnumerable<U> { get{} }
// Toffee
var Values: INSFastEnumeration<U> { get{} }

 

Iterable<U> Values { __get; }

 

ReadOnly Property Values() As IEnumerable<U>

 

Count

Returns the nr of items in this dictionary.

 

property Count: Int32 read;

 

Int32 Count { get; }

 

var Count: Int32 { get{} }

 

Integer Count { __get; }

 

ReadOnly Property Count() As Int32

Item

Get an item by it's key, or null if it's not present.

 

property Item[Key: nullable T]: nullable U read;

 

U? Item[T? Key] { get; }

 

subscript Item(_ Key: T?) -> U? { get{} }

 

U Item[T Key] { __get; }

 

ReadOnly Property Item(Key As T?) As U?

Keys

Returns a keys interator.

 

property Keys: not nullable RemObjects.Elements.RTL.ImmutableList<T> read;

 

RemObjects.Elements.RTL.ImmutableList<T>! Keys { get; }

 

var Keys: RemObjects.Elements.RTL.ImmutableList<T> { get{} }

 

RemObjects.Elements.RTL.ImmutableList<T> Keys { __get; }

 

ReadOnly Property Keys() As RemObjects.Elements.RTL.ImmutableList<T>

Values

Iterator for all values in this dictionary.

 

property Values: not nullable IEnumerable<U> read;

 

IEnumerable<U>! Values { get; }

 

// .NET, .NET Core 6.0, .NET Standard 2.0, Island, ToffeeV2
var Values: IEnumerable<U> { get{} }
// Toffee
var Values: INSFastEnumeration<U> { get{} }

 

Iterable<U> Values { __get; }

 

ReadOnly Property Values() As IEnumerable<U>

 

ContainsKey

Returns true if this key is contained in the dictionary.

 

method ContainsKey(Key: nullable T): Boolean

 

Boolean ContainsKey(T? Key)

 

func ContainsKey(_ Key: T?) -> Boolean

 

Boolean ContainsKey(T Key)

 

Function ContainsKey(Key As T?) As Boolean

Parameters:

  • Key:

ContainsValue

Returns true if this value is contained in the dictionary.

 

method ContainsValue(Value: nullable U): Boolean

 

Boolean ContainsValue(U? Value)

 

func ContainsValue(_ Value: U?) -> Boolean

 

Boolean ContainsValue(U Value)

 

Function ContainsValue(Value As U?) As Boolean

Parameters:

  • Value:

ForEach

Iterate all items in this list and trigger the callback for it.

 

method ForEach(Action: Action<RemObjects.Elements.RTL.KeyValuePair<T,U>>)

 

void ForEach(Action<RemObjects.Elements.RTL.KeyValuePair<T,U>> Action)

 

func ForEach(_ Action: Action<RemObjects.Elements.RTL.KeyValuePair<T,U>>)

 

void ForEach(Action<RemObjects.Elements.RTL.KeyValuePair<T,U>> Action)

 

Sub ForEach(Action As Action<RemObjects.Elements.RTL.KeyValuePair<T,U>>)

Parameters:

  • Action:

GetSequence

Returns an iterator for this dictionary, while iterating changes in the dictionary will cause an exception in the iterator.

 

// .NET, .NET Core 6.0, .NET Standard 2.0
method GetSequence: IEnumerable<KeyValuePair<T, U>>
// Island
method GetSequence: IEnumerable<RemObjects.Elements.RTL.KeyValuePair<T,U>>

 

// .NET, .NET Core 6.0, .NET Standard 2.0
IEnumerable<KeyValuePair<T, U>> GetSequence()
// Island
IEnumerable<RemObjects.Elements.RTL.KeyValuePair<T,U>> GetSequence()

 

// Toffee
func GetSequence() -> INSFastEnumeration<RemObjects.Elements.RTL.KeyValuePair<T,U>>
// ToffeeV2
func GetSequence() -> IEnumerable<KeyValuePair<T, U>>

 

Iterable<KeyValuePair<T, U>> GetSequence()

 

// .NET, .NET Core 6.0, .NET Standard 2.0
Function GetSequence() As IEnumerable<KeyValuePair<T, U>>
// Island
Function GetSequence() As IEnumerable<RemObjects.Elements.RTL.KeyValuePair<T,U>>

MutableVersion

creates a copy and returns this as a mutable version.

 

method MutableVersion: not nullable Dictionary<T, U>

 

Dictionary<T, U>! MutableVersion()

 

func MutableVersion() -> Dictionary<T, U>

 

Dictionary<T, U> MutableVersion()

 

Function MutableVersion() As Dictionary<T, U>