A
- type of the left element.B
- type of the right element.public final class Pair<A,B> extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
A |
left() |
static <A,B> Pair<A,B> |
of(A left,
B right)
Static initializer of the Pair class.
|
B |
right() |
String |
toString() |
public A left()
public B right()
public static <A,B> Pair<A,B> of(A left, B right)
A
- Type of the left element.B
- Type of the right element.left
- left element.right
- right element.Copyright © 2018. All rights reserved.