Pair<L,R> Clase
- java.
lang. Object - com.
microsoft. bot. schema. Pair<L,R>
- com.
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
Detalles del constructor
Pair
public Pair(L withLeft, R withRight)
Crea un nuevo par.
Parámetros:
Detalles del método
getLeft
public L getLeft()
Obtiene el valor izquierdo.
Devoluciones:
getRight
public R getRight()
Obtiene el valor correcto.
Devoluciones: