V - type of values stored in the Mappublic class Long2NullableObjectHashMap<V> extends Long2ObjectHashMap<V>
Long2ObjectHashMap that allows null values.Long2ObjectHashMap.EntryIterator, Long2ObjectHashMap.EntrySet, Long2ObjectHashMap.KeyIterator, Long2ObjectHashMap.KeySet, Long2ObjectHashMap.ValueCollection, Long2ObjectHashMap.ValueIterator| Constructor and Description |
|---|
Long2NullableObjectHashMap()
Constructs map with default settings.
|
Long2NullableObjectHashMap(int initialCapacity,
float loadFactor)
Constructs map with given initial capacity and load factory and enables caching of iterators.
|
Long2NullableObjectHashMap(int initialCapacity,
float loadFactor,
boolean shouldAvoidAllocation)
Construct a new map allowing a configuration for initial capacity and load factor.
|
Long2NullableObjectHashMap(Long2ObjectHashMap<V> mapToCopy)
Copy construct a new map from an existing one.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
mapNullValue(Object value)
Longerceptor for masking null values.
|
protected V |
unmapNullValue(Object value)
Longerceptor for unmasking null values.
|
capacity, clear, compact, compute, computeIfAbsent, computeIfPresent, containsKey, containsKey, containsValue, entrySet, equals, get, get, getMapped, hashCode, isEmpty, keySet, loadFactor, longForEach, put, put, putAll, remove, remove, replace, replace, resizeThreshold, size, toString, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Long2NullableObjectHashMap()
public Long2NullableObjectHashMap(int initialCapacity,
float loadFactor)
initialCapacity - for the backing array.loadFactor - limit for resizing on puts.public Long2NullableObjectHashMap(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 Long2NullableObjectHashMap(Long2ObjectHashMap<V> mapToCopy)
mapToCopy - for construction.protected Object mapNullValue(Object value)
Long2ObjectHashMapmapNullValue in class Long2ObjectHashMap<V>value - value to mask.protected V unmapNullValue(Object value)
Long2ObjectHashMapunmapNullValue in class Long2ObjectHashMap<V>value - value to unmask.Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.