public class Pair<L,R>
extends java.lang.Object
implements java.io.Serializable, java.util.Map.Entry<L,R>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
L |
getKey() |
L |
getLeft() |
R |
getRight() |
R |
getValue() |
int |
hashCode() |
static <L,R> Pair<L,R> |
of(L left,
R right) |
static <L,R> Pair<L,R> |
pair(L left,
R right) |
L |
setKey(L left) |
R |
setValue(R right) |
java.lang.String |
toString() |
public static <L,R> Pair<L,R> of(L left, R right)
public static <L,R> Pair<L,R> pair(L left, R right)
public L getLeft()
public R getRight()
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.lang.Object