Pair<L,R> Class
- java.
lang. Object - com.
microsoft. bot. schema. Pair<L,R>
- com.
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
Constructor Details
Pair
public Pair(L withLeft, R withRight)
Creates a new Pair.
Parameters:
Method Details
getLeft
public L getLeft()
Gets the left value.
Returns:
getRight
public R getRight()
Gets the right value.
Returns: