K - 键类型V - 值类型public class MutableEntry<K,V> extends AbsEntry<K,V> implements Mutable<Map.Entry<K,V>>, Serializable
Map.Entry实现,可以修改键和值| 构造器和说明 |
|---|
MutableEntry(K key,
V value)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
Map.Entry<K,V> |
get()
获得原始值
|
K |
getKey()
获取键
|
V |
getValue()
获取值
|
static <K,V> MutableEntry<K,V> |
of(K key,
V value)
创建
MutableEntry |
void |
set(Map.Entry<K,V> pair)
设置值
|
K |
setKey(K key)
设置键
|
V |
setValue(V value)
设置值
|
map, of, of, of, of, of, of, of, of, peek, test, to, toOptcomparingByKey, comparingByKey, comparingByValue, comparingByValueCopyright © 2023. All rights reserved.