L - Generic left part of the pairR - Generic right part of the pairpublic class Pair<L,R>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
L |
getLeft()
Return the left part of the pair
|
R |
getRight()
Return the right part of the pair
|
void |
setLeft(L left)
Set the left part of the pair
|
void |
setRight(R right)
Set the right part of the pair
|
java.lang.String |
toString() |
public L getLeft()
public void setLeft(L left)
left - New left part of the pairpublic R getRight()
public void setRight(R right)
left - New right part of the pairpublic java.lang.String toString()
toString in class java.lang.Object