L
- Left type.R
- Right type.public class Pair<L,R>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
L |
getLeft() |
R |
getRight() |
int |
hashCode() |
static <L,R> Pair<L,R> |
of(L left,
R right) |
java.lang.String |
toString() |
public static <L,R> Pair<L,R> of(L left, R right)
public L getLeft()
public R getRight()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object