Package org.agrona.collections
package org.agrona.collections
Collections classes that support primitive types and tend to be cache friendly.
-
ClassDescriptionUtility functions for working with
ArrayList
s.Utility class for operating on arrays as if they were collections.Variation ofBiInt2ObjectMap
that allowsnull
values.Map that takes two part int key and associates with an object.Handler for a map entryCreates a new value based upon keys.Creates a new value based upon keys.Utility functions for collection objects.Hashing functions for applying to integers.An open-addressing with linear probing hash map specialised for primitive key and counter pairs.An open-addressing with linear probing hash map specialised for primitive key and value pairs.Variation ofInt2ObjectHashMap
that allowsnull
values.A cache implementation specialised for int keys using open addressing to probe a set of fixed size.Map
implementation specialised for int keys using open addressing and linear probing for cache efficient access.AList
implementation that stores int values with the ability to not have them boxed.Queue of ints which stores the elements without boxing.Open-addressing with linear-probing expandable hash set.Primitive specialisation of a BiConsumer for a pair of ints.Primitive specialisation of a BiFunction for a pair of ints.Primitive specialisation of a BiPredicate for a pair of ints.IntLruCache<E>A fixed capacity cache of int keyed values that evicts the least-recently-used element when it runs out of space.This is an (int, Object) primitive specialisation of a BiConsumer.This is an (int, Object) -> Object primitive specialisation of a BiFunction.This is an (int, Object) primitive specialisation of a BiPredicate.An open-addressing with linear probing hash map specialised for primitive key and counter pairs.An open-addressing with linear probing hash map specialised for primitive key and value pairs.Variation ofLong2ObjectHashMap
that allowsnull
values.A cache implementation specialised for long keys using open addressing to probe a set of fixed size.Map
implementation specialised for long keys using open addressing and linear probing for cache efficient access.AList
implementation that stores long values with the ability to not have them boxed.Queue of longs which stores the elements without boxing.Open-addressing with linear-probing expandable hash set.Primitive specialisation of a BiConsumer for a pair of longs.Primitive specialisation of a BiFunction for a pair of longs.Primitive specialisation of a BiPredicate for a pair of longs.LongLruCache<E>A fixed capacity cache of long keyed values that evicts the least-recently-used element when it runs out of space.This is an (long, Object) primitive specialisation of a BiConsumer.This is an (long, Object) -> Object primitive specialisation of a BiFunction.This is an (long, Object) primitive specialisation of a BiPredicate.Mutable boolean valid that is useful for capturing a value when using lambdas or collections.Holder for an int value that is mutable.Holder for a long value that is mutable.Mutable reference that is useful for capturing an object reference when using lambdas.Sentinel value used in collections supporting null value references.An open-addressing with linear probing hash map specialised for object and primitive counter pairs.Map
implementation specialised for int values using open addressing and linear probing for cache efficient access.An open-addressing with linear probing hash map specialised for object and primitive counter pairs.Map
implementation specialised for long values using open addressing and linear probing for cache efficient access.Variation ofObject2ObjectHashMap
that allowsnull
values.Object2ObjectHashMap<K,V> An open-addressing with linear probing hash map, same algorithm asInt2IntHashMap
.Open-addressing with linear-probing expandable hash set.This is an (Object, int) -> int primitive specialisation of a BiFunction.This is an (Object, long) -> long primitive specialisation of a BiFunction.This is an (Object, i) primitive specialisation of a BiConsumer.This is an (Object, int) primitive specialisation of a BiPredicate.This is an (Object, i) primitive specialisation of a BiConsumer.This is an (Object, long) primitive specialisation of a BiPredicate.An unmodifiable view of a collection that maps each element in an underlying collection into a view.