K - the type of the map's keysV - the type of the map's valuespublic class CustomNullHashMap<K,V> extends HashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CustomNullHashMap()
Default constructor.
|
CustomNullHashMap(V missingKeyValue)
Accepts the value that should be returned if
get(Object) is
called with a key that the map does not contain. |
| Modifier and Type | Method and Description |
|---|---|
V |
get(Object key) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic CustomNullHashMap(V missingKeyValue)
get(Object) is
called with a key that the map does not contain.missingKeyValue - the value that get(Object) should return
if a key is not in the mappublic CustomNullHashMap()
null.Copyright © 2016 Emory University. All rights reserved.