K - 键类型V - 值类型public class FuncKeyMap<K,V> extends CustomKeyMap<K,V>
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR| 构造器和说明 |
|---|
FuncKeyMap(Map<K,V> emptyMap,
Function<Object,K> keyFunc)
构造
注意提供的Map中不能有键值对,否则可能导致自定义key失效 |
| 限定符和类型 | 方法和说明 |
|---|---|
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, valuesforEach, spliteratorCopyright © 2023. All rights reserved.