K
- 键类型V
- 值类型public abstract class CustomKeyMap<K,V> extends TransMap<K,V>
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR
Constructor and Description |
---|
CustomKeyMap(Map<K,V> emptyMap)
构造
通过传入一个Map从而确定Map的类型,子类需创建一个空的Map,而非传入一个已有Map,否则值可能会被修改 |
Modifier and Type | Method and Description |
---|---|
protected V |
customValue(Object value)
自定义值
|
compute, computeIfAbsent, computeIfPresent, containsKey, customKey, get, getOrDefault, merge, put, putAll, putIfAbsent, remove, remove, replace, replace
clear, clone, containsValue, entrySet, equals, forEach, getRaw, hashCode, isEmpty, iterator, keySet, replaceAll, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
Copyright © 2024. All rights reserved.