Pair<L,R> Clase

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

Parámetros de tipo

L

Tipo del valor de tupla izquierda.

R

Tipo del valor de tupla derecha.

public class Pair<L,R>

Una clase sencilla de tipo tupla 2, ya que Java no las admite de forma nativa. Se trata de un objeto inmutable.

Resumen del constructor

Constructor Description
Pair(L withLeft, R withRight)

Crea un nuevo par.

Resumen del método

Modificador y tipo Método y descripción
L getLeft()

Obtiene el valor izquierdo.

R getRight()

Obtiene el valor correcto.

Métodos heredados de 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

Detalles del constructor

Pair

public Pair(L withLeft, R withRight)

Crea un nuevo par.

Parámetros:

withLeft - Valor izquierdo.
withRight - Valor correcto.

Detalles del método

getLeft

public L getLeft()

Obtiene el valor izquierdo.

Devoluciones:

Vale izquierdo del tipo L.

getRight

public R getRight()

Obtiene el valor correcto.

Devoluciones:

Valor derecho del tipo R.

Se aplica a