K
- 键类型V
- 值类型public abstract class CustomKeyLinkedMap<K,V> extends HashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CustomKeyLinkedMap()
构造
|
CustomKeyLinkedMap(float loadFactor,
Map<? extends K,? extends V> m)
构造
|
CustomKeyLinkedMap(int initialCapacity)
构造
|
CustomKeyLinkedMap(int initialCapacity,
float loadFactor)
构造
|
CustomKeyLinkedMap(Map<? extends K,? extends V> m)
构造
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
protected abstract Object |
customKey(Object key)
将Key转为驼峰风格,如果key为字符串的话
|
V |
get(Object key) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public CustomKeyLinkedMap()
public CustomKeyLinkedMap(int initialCapacity, float loadFactor)
initialCapacity
- 初始大小loadFactor
- 加载因子public CustomKeyLinkedMap(int initialCapacity)
initialCapacity
- 初始大小Copyright © 2020. All rights reserved.