public class Object2NullableObjectHashMap<K,V> extends Object2ObjectHashMap<K,V>
Object2ObjectHashMap
that allows null
values.Object2ObjectHashMap.EntryIterator, Object2ObjectHashMap.EntrySet, Object2ObjectHashMap.KeyIterator, Object2ObjectHashMap.KeySet, Object2ObjectHashMap.ValueCollection, Object2ObjectHashMap.ValueIterator
Constructor and Description |
---|
Object2NullableObjectHashMap() |
Object2NullableObjectHashMap(int initialCapacity,
float loadFactor) |
Object2NullableObjectHashMap(int initialCapacity,
float loadFactor,
boolean shouldAvoidAllocation) |
Modifier and Type | Method and Description |
---|---|
protected Object |
mapNullValue(Object value) |
protected V |
unmapNullValue(Object value) |
capacity, clear, compact, containsKey, containsValue, entrySet, equals, forEach, get, hashCode, isEmpty, keySet, loadFactor, put, putAll, remove, resizeThreshold, size, toString, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Object2NullableObjectHashMap()
public Object2NullableObjectHashMap(int initialCapacity, float loadFactor)
public Object2NullableObjectHashMap(int initialCapacity, float loadFactor, boolean shouldAvoidAllocation)
initialCapacity
- for the map to override Object2ObjectHashMap.MIN_CAPACITY
loadFactor
- for the map to override Hashing.DEFAULT_LOAD_FACTOR
.shouldAvoidAllocation
- should allocation be avoided by caching iterators and map entries.protected Object mapNullValue(Object value)
mapNullValue
in class Object2ObjectHashMap<K,V>
protected V unmapNullValue(Object value)
unmapNullValue
in class Object2ObjectHashMap<K,V>
Copyright © 2014-2019 Real Logic Ltd. All Rights Reserved.