Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MutablePair<T1, T2>

A mutable 2-tuple.
First type the tuple holds.Second type the tuple holds.

Type parameters

  • T1

  • T2

Hierarchy

  • MutablePair

Index

Constructors

constructor

  • Initializes a new instance of the fm.icelink.mutablePair class.

    Parameters

    • item1: T1

      First item the tuple holds.

    • item2: T2

      Second item the tuple holds.

    Returns MutablePair

Properties

Private _item1

_item1: T1
internal

Private _item2

_item2: T2
internal

Methods

getItem1

  • getItem1(): T1
  • Gets the first item in the tuple.

    Returns T1

getItem2

  • getItem2(): T2
  • Gets the second item in the tuple.

    Returns T2

getTypeString

  • getTypeString(): string
  • Returns string

setItem1

  • setItem1(value: T1): void
  • Sets the first item in the tuple.

    Parameters

    • value: T1

    Returns void

setItem2

  • setItem2(value: T2): void
  • Sets the second item in the tuple.

    Parameters

    • value: T2

    Returns void