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.
|
String |
toString() |
@Nonnull public static <Left,Right> Pair<Left,Right> of(@Nullable Left left, @Nullable Right right)
Left
- type of the first objectRight
- type of the second objectleft
- first objectright
- second object@Nullable public Right getRight()
Copyright © 2013–2019 Kitteh. All rights reserved.