K - 键类型V - 值类型public class MutablePair<K,V> extends Pair<K,V> implements Mutable<Pair<K,V>>
Pair实现,可以修改键和值| Constructor and Description |
|---|
MutablePair(K key,
V value)
构造
|
| Modifier and Type | Method and Description |
|---|---|
Pair<K,V> |
get()
获得原始值
|
void |
set(Pair<K,V> pair)
设置值
|
MutablePair<K,V> |
setKey(K key)
设置键
|
MutablePair<K,V> |
setValue(V value)
设置值
|
equals, getKey, getValue, hashCode, of, toStringcloneCopyright © 2025. All rights reserved.