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