public class Pair<L,R>
extends java.lang.Object
Constructor and Description |
---|
Pair(L left,
R right)
Constructor specifying the left and right elements of the Pair.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
L |
getLeft()
Get the left element of the Pair
|
R |
getRight()
Get the right element of the Pair
|
int |
hashCode() |
void |
setLeft(L left)
Set the left element of the Pair
|
void |
setRight(R right)
Set the right element of the Pair
|
java.lang.String |
toString() |
public void setLeft(L left)
public void setRight(R right)
public L getLeft()
public R getRight()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object