Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Pair<First, Second>

Pair of two elements.

author

Jeongho Nam - https://github.com/samchon

Type parameters

  • First

  • Second

Hierarchy

  • Pair

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Pair(first: First, second: Second): Pair
  • Initializer Constructor.

    Parameters

    • first: First

      The first element.

    • second: Second

      The second element.

    Returns Pair

Properties

first

first: First

The first element.

second

second: Second

The second element.

Methods

equals

  • equals<U1, U2>(pair: Pair<U1, U2>): boolean
  • inheritdoc

    Type parameters

    • U1: First

    • U2: Second

    Parameters

    • pair: Pair<U1, U2>

    Returns boolean

hashCode

  • hashCode(): number

less

  • less<U1, U2>(pair: Pair<U1, U2>): boolean
  • inheritdoc

    Type parameters

    • U1: First

    • U2: Second

    Parameters

    • pair: Pair<U1, U2>

    Returns boolean

Generated using TypeDoc