Uses of Interface
org.agrona.collections.LongObjectToObjectFunction
Packages that use LongObjectToObjectFunction
Package
Description
Collections classes that support primitive types and tend to be cache friendly.
-
Uses of LongObjectToObjectFunction in org.agrona.collections
Methods in org.agrona.collections with parameters of type LongObjectToObjectFunctionModifier and TypeMethodDescriptionLong2ObjectCache.compute
(long key, LongObjectToObjectFunction<? super V, ? extends V> remappingFunction) Attempts to compute a mapping for the specified key and its current mapped value (ornull
if there is no current mapping).Long2ObjectHashMap.compute
(long key, LongObjectToObjectFunction<? super V, ? extends V> remappingFunction) Attempts to compute a mapping for the specified key and its current mapped value (ornull
if there is no current mapping).Long2ObjectCache.computeIfPresent
(long key, LongObjectToObjectFunction<? super V, ? extends V> remappingFunction) If the value for the specified key is present attempts to compute a new mapping given the key and its current mapped value.Long2ObjectHashMap.computeIfPresent
(long key, LongObjectToObjectFunction<? super V, ? extends V> remappingFunction) If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value.void
Long2ObjectCache.replaceAllLong
(LongObjectToObjectFunction<? super V, ? extends V> function) Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.void
Long2ObjectHashMap.replaceAllLong
(LongObjectToObjectFunction<? super V, ? extends V> function) Primitive specialised version ofMap.replaceAll(BiFunction)
.