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, replaceclear, clone, containsValue, entrySet, equals, forEach, getRaw, hashCode, isEmpty, iterator, keySet, replaceAll, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorCopyright © 2025. All rights reserved.