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

A 2-tuple. More...

Public Member Functions

boolean equals (Object obj)
 Determines whether the specified System.Object is equal to the current System.Object. More...
 
T1 getItem1 ()
 Gets the first item in the tuple. More...
 
T2 getItem2 ()
 Gets the second item in the tuple. More...
 
int hashCode ()
 Calculates the hashcode for this pair. More...
 
 Pair (T1 item1, T2 item2)
 Initializes a new instance of the fm.liveswitch.Pair class. More...
 

Detailed Description

A 2-tuple.

Constructor & Destructor Documentation

◆ Pair()

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

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

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

Member Function Documentation

◆ equals()

boolean fm.liveswitch.Pair< T1, T2 >.equals ( Object  obj)

Determines whether the specified System.Object is equal to the current System.Object.

Parameters
objThe object to compare with the current object.
Returns
true if the specified System.Object is equal to the current System.Object; otherwise, false.

◆ getItem1()

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

Gets the first item in the tuple.

◆ getItem2()

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

Gets the second item in the tuple.

◆ hashCode()

int fm.liveswitch.Pair< T1, T2 >.hashCode ( )

Calculates the hashcode for this pair.