public class Tuple<K,V>
extends java.lang.Object
Constructor and Description |
---|
Tuple()
Create a tuple
|
Tuple(K key,
V value)
Create a tuple wit key and value
|
Modifier and Type | Method and Description |
---|---|
K |
getKey() |
V |
getValue() |
static <K,V> Tuple |
of(K key,
V value) |
void |
setKey(K key) |
void |
setValue(V value) |
java.lang.String |
toString() |