protected static class Configuration.StrictMap<V> extends HashMap<String,V>
Modifier and Type | Class and Description |
---|---|
protected static class |
Configuration.StrictMap.Ambiguity |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
StrictMap(String name) |
StrictMap(String name,
int initialCapacity) |
StrictMap(String name,
int initialCapacity,
float loadFactor) |
StrictMap(String name,
Map<String,? extends V> m) |
Modifier and Type | Method and Description |
---|---|
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.
|
V |
get(Object key) |
V |
put(String key,
V value) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public StrictMap(String name, int initialCapacity, float loadFactor)
public StrictMap(String name, int initialCapacity)
public StrictMap(String name)
public Configuration.StrictMap<V> conflictMessageProducer(BiFunction<V,V,String> conflictMessageProducer)
function arguments are 1st is saved value and 2nd is target value.
conflictMessageProducer
- A function for producing a conflict error messageCopyright © 2009–2020 MyBatis.org. All rights reserved.