fm.liveswitch.MutablePair< T1, T2 > Class Template Reference

A mutable 2-tuple. More...

Public Member Functions

T1 getItem1 ()
 Gets the first item in the tuple. More...
 
T2 getItem2 ()
 Gets the second item in the tuple. More...
 
 MutablePair (T1 item1, T2 item2)
 Initializes a new instance of the fm.liveswitch.MutablePair class. More...
 
void setItem1 (T1 value)
 Sets the first item in the tuple. More...
 
void setItem2 (T2 value)
 Sets the second item in the tuple. More...
 

Detailed Description

A mutable 2-tuple.

Constructor & Destructor Documentation

◆ MutablePair()

fm.liveswitch.MutablePair< T1, T2 >.MutablePair ( T1  item1,
T2  item2 
)

Initializes a new instance of the fm.liveswitch.MutablePair class.

Parameters
item1First item the tuple holds.
item2Second item the tuple holds.

Member Function Documentation

◆ getItem1()

T1 fm.liveswitch.MutablePair< T1, T2 >.getItem1 ( )

Gets the first item in the tuple.

◆ getItem2()

T2 fm.liveswitch.MutablePair< T1, T2 >.getItem2 ( )

Gets the second item in the tuple.

◆ setItem1()

void fm.liveswitch.MutablePair< T1, T2 >.setItem1 ( T1  value)

Sets the first item in the tuple.

◆ setItem2()

void fm.liveswitch.MutablePair< T1, T2 >.setItem2 ( T2  value)

Sets the second item in the tuple.