Package org.aoju.bus.core.map
Class CustomKeyMap<K,V>
java.lang.Object
org.aoju.bus.core.map.MapWrapper<K,V>
org.aoju.bus.core.map.TransitionMap<K,V>
org.aoju.bus.core.map.CustomKeyMap<K,V>
- Type Parameters:
K- 键类型V- 值类型
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Map.Entry<K,,V>> Map<K,,V> XWrapper<Map<K,V>>
- Direct Known Subclasses:
Dictionary,FuncKeyMap
自定义键的Map,默认HashMap实现
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.aoju.bus.core.map.MapWrapper
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR -
Constructor Summary
ConstructorsConstructorDescriptionCustomKeyMap(Map<K, V> map) 构造 通过传入一个Map从而确定Map的类型,子类需创建一个空的Map,而非传入一个已有Map,否则值可能会被修改 -
Method Summary
Methods inherited from class org.aoju.bus.core.map.TransitionMap
compute, computeIfAbsent, computeIfPresent, containsKey, customKey, get, getOrDefault, merge, put, putAll, putIfAbsent, remove, remove, replace, replaceMethods inherited from class org.aoju.bus.core.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
-
CustomKeyMap
-
-
Method Details
-
customValue
Description copied from class:TransitionMap自定义值- Specified by:
customValuein classTransitionMap<K,V> - Parameters:
value- 值- Returns:
- 自定义值
-