public class Pair<V1,V2> extends Object implements Serializable
| Constructor and Description |
|---|
Pair(V1 val1,
V2 val2)
Constructor takes a val1 and val2
|
| Modifier and Type | Method and Description |
|---|---|
V1 |
getVal1()
Getter method for val1
|
V2 |
getVal2()
Getter method for val2
|
void |
setVal1(V1 val1)
Setter method for Val1
|
void |
setVal2(V2 val2)
Setter method for val2
|
String |
toString()
Convert pair to a string
|
public V1 getVal1()
public void setVal1(V1 val1)
val1 - left side tuplepublic V2 getVal2()
public void setVal2(V2 val2)
val2 - right side tupleCopyright © 2024. All rights reserved.