/ fm / liveswitch / Pair
Class: Pair<T1, T2>
fm.liveswitch.Pair
A 2-tuple.
Type parameters
| Name | 
|---|
| T1 | 
| T2 | 
Table of contents
Constructors
Methods
Constructors
constructor
+ new Pair<T1, T2>(item1: T1, item2: T2): Pair<T1, T2>
Initializes a new instance of the [[fm.liveswitch.pair]] class.
Type parameters:
| Name | 
|---|
| T1 | 
| T2 | 
Parameters:
| Name | Type | Description | 
|---|---|---|
| item1 | T1 | First item the tuple holds. | 
| item2 | T2 | Second item the tuple holds. | 
Returns: Pair<T1, T2>
Defined in: Generated/TypeScript/fm.liveswitch/Pair.ts:15
Methods
getHashCode
▸ getHashCode(): number
Calculates the hashcode for this pair.
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/Pair.ts:44
getItem1
▸ getItem1(): T1
Gets the first item in the tuple.
Returns: T1
Defined in: Generated/TypeScript/fm.liveswitch/Pair.ts:56
getItem2
▸ getItem2(): T2
Gets the second item in the tuple.
Returns: T2
Defined in: Generated/TypeScript/fm.liveswitch/Pair.ts:68
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Pair.ts:9