KeyValuePair<T,U>

Overview

Result of iterating a dictionary or dictionary like structure.

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
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2

 

constructor

 

constructor(aKey: T; aValue: U)

 

KeyValuePair<T,U>(T aKey, U aValue)

 

init(_ aKey: T, _ aValue: U)

 

KeyValuePair<T,U>(T aKey, U aValue)

 

Sub New(aKey As T, aValue As U)

Parameters:

  • aKey:
  • aValue:

description  override ToffeeV2

 

func description() -> NSString

description description(): NSString  override Toffee

 

func description(description ) -> NSString

Parameters:

  • :

equals Cooper

 

method equals(Obj: Object): Boolean

 

Boolean equals(Object Obj)

 

func equals(_ Obj: Object) -> Boolean

 

Boolean equals(Object Obj)

 

Function equals(Obj As Object) As Boolean

Parameters:

  • Obj:

GetHashCode  virtual .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Integer GetHashCode()

 

Function GetHashCode() As Int32

GetHashCode GetHashCode(): Int32  virtual Toffee

 

func GetHashCode(GetHashCode ) -> Int32

Parameters:

  • :

hash  override ToffeeV2

 

func hash() -> NativeUInt

hash hash(): UInt64  override Toffee

 

// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-visionOS, Toffee-visionOS Simulator, Toffee-watchOS Simulator
func hash(hash ) -> UInt64
// Toffee-watchOS
func hash(hash ) -> UInt32

Parameters:

  • :

hashCode Cooper

 

method hashCode: Integer

 

Integer hashCode()

 

func hashCode() -> Integer

 

Integer hashCode()

 

Function hashCode() As Integer

isEqual  override Toffee, ToffeeV2

 

// Toffee
func isEqual(_ obj: NSObject) -> Boolean
// ToffeeV2
func isEqual(_ obj: Object) -> Boolean

Parameters:

  • obj:

Key

 

property Key: T read;

 

T Key { get; }

 

var Key: T { get{} }

 

T Key { __get; }

 

ReadOnly Property Key() As T

toString Cooper

 

method toString: PlatformString

 

PlatformString toString()

 

func toString() -> PlatformString

 

PlatformString toString()

 

Function toString() As PlatformString

ToString  virtual Toffee

 

func ToString(ToString ) -> PlatformString

Parameters:

  • :

Tuple

 

property Tuple: tuple of (T, U) read;

 

(T, U) Tuple { get; }

 

var Tuple: (T, U) { get{} }

 

Tuple2<T, U> Tuple { __get; }

 

ReadOnly Property Tuple() As Tuple (Of T, U)

Value

 

property Value: U read;

 

U Value { get; }

 

var Value: U { get{} }

 

U Value { __get; }

 

ReadOnly Property Value() As U

 

Key

 

property Key: T read;

 

T Key { get; }

 

var Key: T { get{} }

 

T Key { __get; }

 

ReadOnly Property Key() As T

Tuple

 

property Tuple: tuple of (T, U) read;

 

(T, U) Tuple { get; }

 

var Tuple: (T, U) { get{} }

 

Tuple2<T, U> Tuple { __get; }

 

ReadOnly Property Tuple() As Tuple (Of T, U)

Value

 

property Value: U read;

 

U Value { get; }

 

var Value: U { get{} }

 

U Value { __get; }

 

ReadOnly Property Value() As U

 

constructor

 

constructor(aKey: T; aValue: U)

 

KeyValuePair<T,U>(T aKey, U aValue)

 

init(_ aKey: T, _ aValue: U)

 

KeyValuePair<T,U>(T aKey, U aValue)

 

Sub New(aKey As T, aValue As U)

Parameters:

  • aKey:
  • aValue:

description  override ToffeeV2

 

func description() -> NSString

description description(): NSString  override Toffee

 

func description(description ) -> NSString

Parameters:

  • :

equals Cooper

 

method equals(Obj: Object): Boolean

 

Boolean equals(Object Obj)

 

func equals(_ Obj: Object) -> Boolean

 

Boolean equals(Object Obj)

 

Function equals(Obj As Object) As Boolean

Parameters:

  • Obj:

GetHashCode  virtual .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Integer GetHashCode()

 

Function GetHashCode() As Int32

GetHashCode GetHashCode(): Int32  virtual Toffee

 

func GetHashCode(GetHashCode ) -> Int32

Parameters:

  • :

hash  override ToffeeV2

 

func hash() -> NativeUInt

hash hash(): UInt64  override Toffee

 

// Toffee-iOS, Toffee-iOS Simulator, Toffee-Mac Catalyst, Toffee-macOS, Toffee-tvOS, Toffee-tvOS Simulator, Toffee-visionOS, Toffee-visionOS Simulator, Toffee-watchOS Simulator
func hash(hash ) -> UInt64
// Toffee-watchOS
func hash(hash ) -> UInt32

Parameters:

  • :

hashCode Cooper

 

method hashCode: Integer

 

Integer hashCode()

 

func hashCode() -> Integer

 

Integer hashCode()

 

Function hashCode() As Integer

isEqual  override Toffee, ToffeeV2

 

// Toffee
func isEqual(_ obj: NSObject) -> Boolean
// ToffeeV2
func isEqual(_ obj: Object) -> Boolean

Parameters:

  • obj:

toString Cooper

 

method toString: PlatformString

 

PlatformString toString()

 

func toString() -> PlatformString

 

PlatformString toString()

 

Function toString() As PlatformString

ToString  virtual Toffee

 

func ToString(ToString ) -> PlatformString

Parameters:

  • :