Package org.apache.ibatis.session
Class Configuration.StrictMap<V>
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
V>
- Enclosing class:
Configuration
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BiFunction
<V, V, String> private final String
private static final long
-
Constructor Summary
Constructors -
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.private String
getShortName
(String key) Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
conflictMessageProducer
-
-
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
-
get
-
getShortName
-