Package org.agrona.collections
Class BiInt2NullableObjectMap<V>
- java.lang.Object
-
- org.agrona.collections.BiInt2ObjectMap<V>
-
- org.agrona.collections.BiInt2NullableObjectMap<V>
-
- Type Parameters:
V
- type of values stored in theMap
public class BiInt2NullableObjectMap<V> extends BiInt2ObjectMap<V>
Variation ofBiInt2ObjectMap
that allowsnull
values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.agrona.collections.BiInt2ObjectMap
BiInt2ObjectMap.EntryConsumer<V>, BiInt2ObjectMap.EntryFunction<V>, BiInt2ObjectMap.EntryRemap<V,V1>
-
-
Constructor Summary
Constructors Constructor Description BiInt2NullableObjectMap()
Constructs map with default settings.BiInt2NullableObjectMap(int initialCapacity, float loadFactor)
Constructs map with given initial capacity and load factory and enables caching of iterators.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
mapNullValue(java.lang.Object value)
Interceptor for masking null values.protected V
unmapNullValue(java.lang.Object value)
Interceptor for unmasking null values.-
Methods inherited from class org.agrona.collections.BiInt2ObjectMap
capacity, clear, compact, compute, computeIfAbsent, computeIfPresent, containsKey, forEach, forEach, get, getOrDefault, isEmpty, loadFactor, merge, put, putIfAbsent, remove, remove, replace, replace, resizeThreshold, size, toString
-
-
-
-
Constructor Detail
-
BiInt2NullableObjectMap
public BiInt2NullableObjectMap()
Constructs map with default settings.
-
BiInt2NullableObjectMap
public BiInt2NullableObjectMap(int initialCapacity, float loadFactor)
Constructs map with given initial capacity and load factory and enables caching of iterators.- Parameters:
initialCapacity
- for the backing array.loadFactor
- limit for resizing on puts.
-
-
Method Detail
-
mapNullValue
protected java.lang.Object mapNullValue(java.lang.Object value)
Description copied from class:BiInt2ObjectMap
Interceptor for masking null values.- Overrides:
mapNullValue
in classBiInt2ObjectMap<V>
- Parameters:
value
- value to mask.- Returns:
- masked value.
-
unmapNullValue
protected V unmapNullValue(java.lang.Object value)
Description copied from class:BiInt2ObjectMap
Interceptor for unmasking null values.- Overrides:
unmapNullValue
in classBiInt2ObjectMap<V>
- Parameters:
value
- value to unmask.- Returns:
- unmasked value.
-
-