V
- type of values stored in the Map
public class Int2NullableObjectHashMap<V> extends Int2ObjectHashMap<V>
Int2ObjectHashMap
that allows null
values.Int2ObjectHashMap.EntryIterator, Int2ObjectHashMap.EntrySet, Int2ObjectHashMap.KeyIterator, Int2ObjectHashMap.KeySet, Int2ObjectHashMap.ValueCollection, Int2ObjectHashMap.ValueIterator
Constructor and Description |
---|
Int2NullableObjectHashMap() |
Int2NullableObjectHashMap(Int2ObjectHashMap<V> mapToCopy)
Copy construct a new map from an existing one.
|
Int2NullableObjectHashMap(int initialCapacity,
float loadFactor) |
Int2NullableObjectHashMap(int initialCapacity,
float loadFactor,
boolean shouldAvoidAllocation)
Construct a new map allowing a configuration for initial capacity and load factor.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
mapNullValue(Object value) |
protected V |
unmapNullValue(Object value) |
capacity, clear, compact, computeIfAbsent, containsKey, containsKey, containsValue, entrySet, equals, get, get, getMapped, hashCode, isEmpty, keySet, loadFactor, put, put, putAll, remove, remove, replace, replace, resizeThreshold, size, toString, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Int2NullableObjectHashMap()
public Int2NullableObjectHashMap(int initialCapacity, float loadFactor)
public Int2NullableObjectHashMap(int initialCapacity, float loadFactor, boolean shouldAvoidAllocation)
initialCapacity
- for the backing arrayloadFactor
- limit for resizing on putsshouldAvoidAllocation
- should allocation be avoided by caching iterators and map entries.public Int2NullableObjectHashMap(Int2ObjectHashMap<V> mapToCopy)
mapToCopy
- for construction.protected Object mapNullValue(Object value)
mapNullValue
in class Int2ObjectHashMap<V>
protected V unmapNullValue(Object value)
unmapNullValue
in class Int2ObjectHashMap<V>
Copyright © 2014-2019 Real Logic Ltd. All Rights Reserved.