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)
根据函数自定义键
|
customValue
compute, computeIfAbsent, computeIfPresent, containsKey, 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.