K
- 键类型V
- 值类型public class Pair<K,V> extends CloneSupport<Pair<K,V>> implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
K |
getKey()
获取键
|
V |
getValue()
获取值
|
int |
hashCode() |
static <K,V> Pair<K,V> |
of(K key,
V value)
构建
Pair 对象 |
String |
toString() |
clone
Copyright © 2024. All rights reserved.