Search Results for

    / fm / liveswitch / Pair

    Class: Pair<T1, T2>

    fm.liveswitch.Pair

    A 2-tuple.

    Type parameters

    Name
    T1
    T2

    Table of contents

    Constructors

    • constructor

    Methods

    • getHashCode
    • getItem1
    • getItem2
    • getTypeString

    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

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.14.6