Package org.apache.ibatis.session
Class Configuration.StrictMap<V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<String,V>
org.apache.ibatis.session.Configuration.StrictMap<V>
- All Implemented Interfaces:
Serializable
,ConcurrentMap<String,
,V> Map<String,
V>
- Enclosing class:
- Configuration
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,
V extends Object> Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconflictMessageProducer
(BiFunction<V, V, String> conflictMessageProducer) Assign a function for producing a conflict error message when contains value with the same key.boolean
containsKey
(Object key) Methods inherited from class java.util.concurrent.ConcurrentHashMap
clear, compute, computeIfAbsent, computeIfPresent, contains, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
Methods inherited from class java.util.AbstractMap
clone
-
Constructor Details
-
StrictMap
-
StrictMap
-
StrictMap
-
StrictMap
-
-
Method Details
-
conflictMessageProducer
public Configuration.StrictMap<V> conflictMessageProducer(BiFunction<V, V, String> conflictMessageProducer) Assign a function for producing a conflict error message when contains value with the same key.function arguments are 1st is saved value and 2nd is target value.
- Parameters:
conflictMessageProducer
- A function for producing a conflict error message- Returns:
- a conflict error message
- Since:
- 3.5.0
-
put
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
V> - Overrides:
containsKey
in classConcurrentHashMap<String,
V>
-
get
-