K - 键类型V - 值类型public class FuncKeyMap<K,V> extends CustomKeyMap<K,V>
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR| Constructor and Description |
|---|
FuncKeyMap(Map<K,V> emptyMap,
Function<Object,K> keyFunc)
构造
注意提供的Map中不能有键值对,否则可能导致自定义key失效 |
| Modifier and Type | Method and Description |
|---|---|
protected K |
customKey(Object key)
根据函数自定义键
|
customValuecompute, computeIfAbsent, computeIfPresent, containsKey, 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.