public class Pair<K,V>
extends java.lang.Object
| Constructor and Description |
|---|
Pair() |
Pair(K key,
V value)
Instantiates a new Pair.
|
| Modifier and Type | Method and Description |
|---|---|
K |
getKey() |
V |
getValue() |
static <K,V> Pair<K,V> |
newInstance(K key,
V value)
Returns a new pair of the given generic type combination.
|
void |
setKey(K key) |
void |
setValue(V value) |
public K getKey()
public void setKey(K key)
public V getValue()
public void setValue(V value)
public static <K,V> Pair<K,V> newInstance(K key, V value)
key - the key generic objectvalue - the value generic objectCopyright © 2018 SAP SE. All Rights Reserved.