Modifier | Constructor and Description |
---|---|
protected |
Pair(L left,
R right) |
Modifier and Type | Method and Description |
---|---|
L |
getLeft()
Returns the left object of this pair.
|
R |
getRight()
Returns the right object of this pair.
|
static <L,R> Pair<L,R> |
of(L left,
R right)
Creates a new pair of two objects.
|
public static <L,R> Pair<L,R> of(L left, R right)
left
- The left object, null
if not specified.right
- The right object, null
if not specified.public L getLeft()
null
if not specified.Copyright © 2021 Connect2id Ltd.. All rights reserved.