Pair<L,R> Class

  • java.lang.Object
    • com.microsoft.bot.schema.Pair<L,R>

Type Parameters

L

The type of the left tuple value.

R

The type of the right tuple value.

public class Pair<L,R>

A simple 2 Tuple-like class since Java doesn't natively support them. This is an immutable object.

Constructor Summary

Constructor Description
Pair(L withLeft, R withRight)

Creates a new Pair.

Method Summary

Modifier and Type Method and Description
L getLeft()

Gets the left value.

R getRight()

Gets the right value.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Pair

public Pair(L withLeft, R withRight)

Creates a new Pair.

Parameters:

withLeft - The left value.
withRight - The right value.

Method Details

getLeft

public L getLeft()

Gets the left value.

Returns:

The left vale of type L.

getRight

public R getRight()

Gets the right value.

Returns:

The right value of type R.

Applies to