Left
- Type of the first objectRight
- Type of the second objectpublic final class Pair<Left,Right> extends Object
Constructor and Description |
---|
Pair(Left left,
Right right)
Constructs a pair of objects
|
Modifier and Type | Method and Description |
---|---|
Left |
getLeft()
Gets the first object of this pair.
|
Right |
getRight()
Gets the second object of this pair.
|
static <Left,Right> |
of(Left left,
Right right)
Creates a Pair from given objects.
|
@NonNull String |
toString() |
public static <Left,Right> @NonNull Pair<Left,Right> of(Left left, Right right)
Left
- type of the first objectRight
- type of the second objectleft
- first objectright
- second objectpublic Left getLeft()
public Right getRight()
Copyright © 2013–2021 Kitteh. All rights reserved.