Package org.miaixz.bus.core.center.map
Class CamelCaseMap<K,V>
java.lang.Object
org.miaixz.bus.core.center.map.MapWrapper<K,V>
org.miaixz.bus.core.center.map.TransMap<K,V>
org.miaixz.bus.core.center.map.CustomKeyMap<K,V>
org.miaixz.bus.core.center.map.FunctionKeyMap<K,V>
org.miaixz.bus.core.center.map.CamelCaseMap<K,V>
- Type Parameters:
K- 键类型V- 值类型
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Map.Entry<K,,V>> Map<K,,V> Wrapper<Map<K,V>>
- Direct Known Subclasses:
CamelCaseLinkedMap
驼峰Key风格的Map
对KEY转换为驼峰,get("int_value")和get("intValue")获得的值相同,put进入的值也会被覆盖
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescription构造CamelCaseMap(float loadFactor, Map<? extends K, ? extends V> m) 构造CamelCaseMap(int initialCapacity) 构造CamelCaseMap(int initialCapacity, float loadFactor) 构造CamelCaseMap(Map<? extends K, ? extends V> m) 构造 -
Method Summary
Methods inherited from class org.miaixz.bus.core.center.map.FunctionKeyMap
customKeyMethods inherited from class org.miaixz.bus.core.center.map.CustomKeyMap
customValueMethods inherited from class org.miaixz.bus.core.center.map.TransMap
compute, computeIfAbsent, computeIfPresent, containsKey, get, getOrDefault, merge, put, putAll, putIfAbsent, remove, remove, replace, replaceMethods inherited from class org.miaixz.bus.core.center.map.MapWrapper
clear, clone, containsValue, entrySet, equals, forEach, getRaw, hashCode, isEmpty, iterator, keySet, replaceAll, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CamelCaseMap
public CamelCaseMap()构造 -
CamelCaseMap
public CamelCaseMap(int initialCapacity) 构造- Parameters:
initialCapacity- 初始大小
-
CamelCaseMap
构造- Parameters:
m- Map
-
CamelCaseMap
构造- Parameters:
loadFactor- 加载因子m- 初始Map,数据会被默认拷贝到一个新的HashMap中
-
CamelCaseMap
public CamelCaseMap(int initialCapacity, float loadFactor) 构造- Parameters:
initialCapacity- 初始大小loadFactor- 加载因子
-