/ fm / liveswitch / MutablePair
Class: MutablePair<T1, T2>
fm.liveswitch.MutablePair
A mutable 2-tuple.
Type parameters
Name |
---|
T1 |
T2 |
Table of contents
Constructors
Methods
Constructors
constructor
+ new MutablePair<T1, T2>(item1
: T1, item2
: T2): MutablePair<T1, T2>
Initializes a new instance of the [[fm.liveswitch.mutablePair]] 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: MutablePair<T1, T2>
Defined in: Generated/TypeScript/fm.liveswitch/MutablePair.ts:15
Methods
getItem1
▸ getItem1(): T1
Gets the first item in the tuple.
Returns: T1
Defined in: Generated/TypeScript/fm.liveswitch/MutablePair.ts:44
getItem2
▸ getItem2(): T2
Gets the second item in the tuple.
Returns: T2
Defined in: Generated/TypeScript/fm.liveswitch/MutablePair.ts:56
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/MutablePair.ts:9
setItem1
▸ setItem1(value
: T1): void
Sets the first item in the tuple.
Parameters:
Name | Type |
---|---|
value |
T1 |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MutablePair.ts:68
setItem2
▸ setItem2(value
: T2): void
Sets the second item in the tuple.
Parameters:
Name | Type |
---|---|
value |
T2 |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/MutablePair.ts:80