public final class DefaultHashMap<K,V>
extends java.util.HashMap<K,V>
Modifier and Type | Field and Description |
---|---|
protected V |
defaultValue
Default value to return when no key binding exists.
|
Constructor and Description |
---|
DefaultHashMap(V defaultValue)
Constructs an empty map with the given default value.
|
Modifier and Type | Method and Description |
---|---|
V |
get(java.lang.Object k) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values