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
Variation of
BiInt2ObjectMap that allows null 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
ConstructorsConstructorDescriptionConstructs 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
Modifier and TypeMethodDescriptionprotected ObjectmapNullValue(Object value) Interceptor for masking null values.protected VunmapNullValue(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 Details
-
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 Details
-
mapNullValue
Description copied from class:BiInt2ObjectMapInterceptor for masking null values.- Overrides:
mapNullValuein classBiInt2ObjectMap<V>- Parameters:
value- value to mask.- Returns:
- masked value.
-
unmapNullValue
Description copied from class:BiInt2ObjectMapInterceptor for unmasking null values.- Overrides:
unmapNullValuein classBiInt2ObjectMap<V>- Parameters:
value- value to unmask.- Returns:
- unmasked value.
-