public class Pair<K,V> extends CloneSupport<Pair<K,V>> implements Map.Entry<K,V>, Serializable
Constructor and Description |
---|
Pair() |
Pair(K key,
V value) |
Pair(Map.Entry<K,V> entry) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
K |
getKey() |
V |
getValue() |
int |
hashCode() |
Optional<K> |
keyOptional() |
static <K,V> Pair<K,V> |
of(K key,
V value) |
static <K,V> Pair<K,V> |
of(Map.Entry<K,V> entry) |
void |
setKey(K key) |
V |
setValue(V value) |
String |
toString() |
Optional<V> |
valueOptional() |
clone
finalize, getClass, notify, notifyAll, wait, wait, wait
comparingByKey, comparingByKey, comparingByValue, comparingByValue
Copyright © 2024. All rights reserved.