---
title: "Index"
description: "Index: every declaration from A to Z."
kind: "index"
module: "collections"
version: "25.6.0-elide.4"
canonical: "https://graalvm.elide.help/25.6.0-elide.4/api/collections/index-all.html"
---

# Index

Every declaration of collections, from A to Z.

## A

- [`EconomicSet.add(E)`](org/graalvm/collections/EconomicSet.md#add%28E%29), method: Adds non-null `element` to this set if it is not already present.
- [`LockFreePool.add(T)`](org/graalvm/collections/LockFreePool.md#add%28T%29), method: Adds an element to this pool.
- [`EconomicSet.addAll(EconomicSet)`](org/graalvm/collections/EconomicSet.md#addAll%28org.graalvm.collections.EconomicSet%29), method: Adds all the elements in `other` to this set if they're not already present.
- [`EconomicSet.addAll(Iterable)`](org/graalvm/collections/EconomicSet.md#addAll%28java.lang.Iterable%29), method: Adds all the elements in `values` to this set if they're not already present.
- [`EconomicSet.addAll(Iterator)`](org/graalvm/collections/EconomicSet.md#addAll%28java.util.Iterator%29), method: Adds all the elements enumerated by `iterator` to this set if they're not already present.
- [`UnmodifiableMapCursor.advance()`](org/graalvm/collections/UnmodifiableMapCursor.md#advance%28%29), method: Advances to the next entry.
- [`LockFreePrefixTree.Allocator`](org/graalvm/collections/LockFreePrefixTree.Allocator.md), abstract class in org.graalvm.collections: Policy for allocating objects of the lock-free prefix tree.
- [`LockFreePrefixTree.Allocator()`](org/graalvm/collections/LockFreePrefixTree.Allocator.md#%3Cinit%3E%28%29), constructor: Creates a new Allocator instance.
- [`LockFreePrefixTree.allocator()`](org/graalvm/collections/LockFreePrefixTree.md#allocator%28%29), method
- [`LockFreePrefixTree.Node.at(LockFreePrefixTree.Allocator, long)`](org/graalvm/collections/LockFreePrefixTree.Node.md#at%28org.graalvm.collections.LockFreePrefixTree.Allocator,long%29), method: Get existing (or create if missing) child with the given key.
- [`SeqLockPrefixTree.Node.at(long)`](org/graalvm/collections/SeqLockPrefixTree.Node.md#at%28long%29), method: Get existing (or create if missing) child with the given key.

## B

- [`LockFreePrefixTree.Node.bitwiseOrValue(long)`](org/graalvm/collections/LockFreePrefixTree.Node.md#bitwiseOrValue%28long%29), method: Atomically does the bitwise-or on the current value.

## C

- [`EconomicMap.clear()`](org/graalvm/collections/EconomicMap.md#clear%28%29), method: Removes all the mappings from this map.
- [`EconomicMapWrap.clear()`](org/graalvm/collections/EconomicMapWrap.md#clear%28%29), method: Removes all the mappings from this map.
- [`EconomicSet.clear()`](org/graalvm/collections/EconomicSet.md#clear%28%29), method: Removes all the elements from this set.
- [`EconomicMap.computeIfAbsent(K, Function)`](org/graalvm/collections/EconomicMap.md#computeIfAbsent%28K,java.util.function.Function%29), method: If the specified key is not already associated with a value (or is mapped to `null`), attempts to compute its value using the given mapping function and enters it into this map unless `null`.
- [`EconomicMapWrap.computeIfAbsent(K, Function)`](org/graalvm/collections/EconomicMapWrap.md#computeIfAbsent%28K,java.util.function.Function%29), method: If the specified key is not already associated with a value (or is mapped to `null`), attempts to compute its value using the given mapping function and enters it into this map unless `null`.
- [`UnmodifiableEconomicSet.contains(E)`](org/graalvm/collections/UnmodifiableEconomicSet.md#contains%28E%29), method: Returns `true` if this set contains a mapping for the `element`.
- [`UnmodifiableEconomicSet.containsAll(Iterable)`](org/graalvm/collections/UnmodifiableEconomicSet.md#containsAll%28java.lang.Iterable%29), method
- [`EconomicMapWrap.containsKey(K)`](org/graalvm/collections/EconomicMapWrap.md#containsKey%28K%29), method: Returns `true` if this map contains a mapping for `key`.
- [`UnmodifiableEconomicMap.containsKey(K)`](org/graalvm/collections/UnmodifiableEconomicMap.md#containsKey%28K%29), method: Returns `true` if this map contains a mapping for `key`.
- [`EconomicMap.create()`](org/graalvm/collections/EconomicMap.md#create%28%29), method: Creates a new map that guarantees insertion order on the key set with the default [`Equivalence.DEFAULT`](org/graalvm/collections/Equivalence.md#DEFAULT) comparison strategy for keys.
- [`EconomicSet.create()`](org/graalvm/collections/EconomicSet.md#create%28%29), method: Creates a new set guaranteeing insertion order when iterating over its elements with the default [`Equivalence.DEFAULT`](org/graalvm/collections/Equivalence.md#DEFAULT) comparison strategy.
- [`EconomicMap.create(Equivalence)`](org/graalvm/collections/EconomicMap.md#create%28org.graalvm.collections.Equivalence%29), method: Creates a new map that guarantees insertion order on the key set with the given comparison strategy for keys.
- [`EconomicSet.create(Equivalence)`](org/graalvm/collections/EconomicSet.md#create%28org.graalvm.collections.Equivalence%29), method: Creates a new set guaranteeing insertion order when iterating over its elements.
- [`EconomicMap.create(Equivalence, int)`](org/graalvm/collections/EconomicMap.md#create%28org.graalvm.collections.Equivalence,int%29), method: Creates a new map that guarantees insertion order on the key set and initializes with a specified capacity.
- [`EconomicSet.create(Equivalence, int)`](org/graalvm/collections/EconomicSet.md#create%28org.graalvm.collections.Equivalence,int%29), method: Creates a new set guaranteeing insertion order when iterating over its elements and initializes with the given capacity.
- [`EconomicMap.create(Equivalence, UnmodifiableEconomicMap)`](org/graalvm/collections/EconomicMap.md#create%28org.graalvm.collections.Equivalence,org.graalvm.collections.UnmodifiableEconomicMap%29), method: Creates a new map that guarantees insertion order on the key set and copies all elements from the specified existing map.
- [`EconomicSet.create(Equivalence, UnmodifiableEconomicSet)`](org/graalvm/collections/EconomicSet.md#create%28org.graalvm.collections.Equivalence,org.graalvm.collections.UnmodifiableEconomicSet%29), method: Creates a new set guaranteeing insertion order when iterating over its elements and inserts all elements of the specified collection.
- [`EconomicMap.create(int)`](org/graalvm/collections/EconomicMap.md#create%28int%29), method: Creates a new map that guarantees insertion order on the key set with the default [`Equivalence.DEFAULT`](org/graalvm/collections/Equivalence.md#DEFAULT) comparison strategy for keys and initializes with a specified capacity.
- [`EconomicSet.create(int)`](org/graalvm/collections/EconomicSet.md#create%28int%29), method: Creates a new set guaranteeing insertion order when iterating over its elements with the default [`Equivalence.DEFAULT`](org/graalvm/collections/Equivalence.md#DEFAULT) comparison strategy.
- [`EconomicSet.create(Iterable)`](org/graalvm/collections/EconomicSet.md#create%28java.lang.Iterable%29), method: Creates a new set guaranteeing insertion order when iterating over its elements with the default [`Equivalence.DEFAULT`](org/graalvm/collections/Equivalence.md#DEFAULT) comparison strategy and inserts all elements of the specified iterable.
- [`Pair.create(L, R)`](org/graalvm/collections/Pair.md#create%28L,R%29), method: Constructs a pair with its left value being `left`, and its right value being `right`, or returns an empty pair if both inputs are null.
- [`EconomicMap.create(UnmodifiableEconomicMap)`](org/graalvm/collections/EconomicMap.md#create%28org.graalvm.collections.UnmodifiableEconomicMap%29), method: Creates a new map that guarantees insertion order on the key set with the default [`Equivalence.DEFAULT`](org/graalvm/collections/Equivalence.md#DEFAULT) comparison strategy for keys and copies all elements from the specified existing map.
- [`EconomicSet.create(UnmodifiableEconomicSet)`](org/graalvm/collections/EconomicSet.md#create%28org.graalvm.collections.UnmodifiableEconomicSet%29), method: Creates a new set guaranteeing insertion order when iterating over its elements with the default [`Equivalence.DEFAULT`](org/graalvm/collections/Equivalence.md#DEFAULT) comparison strategy and inserts all elements of the specified collection.
- [`Pair.createLeft(L)`](org/graalvm/collections/Pair.md#createLeft%28L%29), method: Constructs a pair with its left value being `left`, or returns an empty pair if `left` is null.
- [`Pair.createRight(R)`](org/graalvm/collections/Pair.md#createRight%28R%29), method: Constructs a pair with its right value being `right`, or returns an empty pair if `right` is null.

## D

- [`Equivalence.DEFAULT`](org/graalvm/collections/Equivalence.md#DEFAULT), field: Default equivalence calling [`equals(Object)`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29) to check equality and [`hashCode()`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29) for obtaining hash values.

## E

- [`EconomicMap`](org/graalvm/collections/EconomicMap.md), interface in org.graalvm.collections: Memory efficient map data structure that dynamically changes its representation depending on the number of entries and is specially optimized for small number of entries.
- [`EconomicMapUtil`](org/graalvm/collections/EconomicMapUtil.md), class in org.graalvm.collections: Utility methods for the [`EconomicMap`](org/graalvm/collections/EconomicMap.md).
- [`EconomicMapWrap`](org/graalvm/collections/EconomicMapWrap.md), class in org.graalvm.collections: Wraps an existing [`Map`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html) as an [`EconomicMap`](org/graalvm/collections/EconomicMap.md).
- [`EconomicMapWrap(Map)`](org/graalvm/collections/EconomicMapWrap.md#%3Cinit%3E%28java.util.Map%29), constructor
- [`EconomicSet`](org/graalvm/collections/EconomicSet.md), interface in org.graalvm.collections: Memory efficient set data structure.
- [`Pair.empty()`](org/graalvm/collections/Pair.md#empty%28%29), method: Returns an empty pair.
- [`EconomicMap.emptyCursor()`](org/graalvm/collections/EconomicMap.md#emptyCursor%28%29), method: Return an empty [`MapCursor`](org/graalvm/collections/MapCursor.md).
- [`EconomicMap.emptyMap()`](org/graalvm/collections/EconomicMap.md#emptyMap%28%29), method: Return an empty, unmodifiable [`EconomicMap`](org/graalvm/collections/EconomicMap.md).
- [`EconomicSet.emptySet()`](org/graalvm/collections/EconomicSet.md#emptySet%28%29), method: Return an empty, unmodifiable [`EconomicSet`](org/graalvm/collections/EconomicSet.md).
- [`Pair.equals(Object)`](org/graalvm/collections/Pair.md#equals%28java.lang.Object%29), method
- [`Equivalence.equals(Object, Object)`](org/graalvm/collections/Equivalence.md#equals%28java.lang.Object,java.lang.Object%29), method: Returns `true` if the non-`null` arguments are equal to each other and `false` otherwise.
- [`EconomicMapUtil.equals(UnmodifiableEconomicMap, UnmodifiableEconomicMap)`](org/graalvm/collections/EconomicMapUtil.md#equals%28org.graalvm.collections.UnmodifiableEconomicMap,org.graalvm.collections.UnmodifiableEconomicMap%29), method: Compares maps for equality.
- [`Equivalence`](org/graalvm/collections/Equivalence.md), abstract class in org.graalvm.collections: Strategy for comparing two objects.
- [`Equivalence()`](org/graalvm/collections/Equivalence.md#%3Cinit%3E%28%29), constructor: Subclass for creating custom equivalence definitions.

## G

- [`LockFreePool.get()`](org/graalvm/collections/LockFreePool.md#get%28%29), method: Returns a previously added element.
- [`EconomicMapWrap.get(K)`](org/graalvm/collections/EconomicMapWrap.md#get%28K%29), method: Returns the value to which `key` is mapped, or `null` if this map contains no mapping for `key`.
- [`UnmodifiableEconomicMap.get(K)`](org/graalvm/collections/UnmodifiableEconomicMap.md#get%28K%29), method: Returns the value to which `key` is mapped, or `null` if this map contains no mapping for `key`.
- [`EconomicMapWrap.get(K, V)`](org/graalvm/collections/EconomicMapWrap.md#get%28K,V%29), method: Returns the value to which `key` is mapped, or `defaultValue` if this map contains no mapping for `key`.
- [`UnmodifiableEconomicMap.get(K, V)`](org/graalvm/collections/UnmodifiableEconomicMap.md#get%28K,V%29), method: Returns the value to which `key` is mapped, or `defaultValue` if this map contains no mapping for `key`.
- [`EconomicMap.getEntries()`](org/graalvm/collections/EconomicMap.md#getEntries%28%29), method: Returns a [`MapCursor`](org/graalvm/collections/MapCursor.md) view of the mappings contained in this map.
- [`EconomicMapWrap.getEntries()`](org/graalvm/collections/EconomicMapWrap.md#getEntries%28%29), method: Returns a [`MapCursor`](org/graalvm/collections/MapCursor.md) view of the mappings contained in this map.
- [`UnmodifiableEconomicMap.getEntries()`](org/graalvm/collections/UnmodifiableEconomicMap.md#getEntries%28%29), method: Returns a [`UnmodifiableMapCursor`](org/graalvm/collections/UnmodifiableMapCursor.md) view of the mappings contained in this map.
- [`UnmodifiableEconomicMap.getEquivalenceStrategy()`](org/graalvm/collections/UnmodifiableEconomicMap.md#getEquivalenceStrategy%28%29), method: Returns the strategy used to compare keys.
- [`UnmodifiableMapCursor.getKey()`](org/graalvm/collections/UnmodifiableMapCursor.md#getKey%28%29), method: The key of the current entry.
- [`EconomicMapWrap.getKeys()`](org/graalvm/collections/EconomicMapWrap.md#getKeys%28%29), method: Returns a [`Iterable`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html) view of the keys contained in this map.
- [`UnmodifiableEconomicMap.getKeys()`](org/graalvm/collections/UnmodifiableEconomicMap.md#getKeys%28%29), method: Returns a [`Iterable`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html) view of the keys contained in this map.
- [`Pair.getLeft()`](org/graalvm/collections/Pair.md#getLeft%28%29), method: Returns the left value of this pair.
- [`Pair.getRight()`](org/graalvm/collections/Pair.md#getRight%28%29), method: Returns the right value of this pair.
- [`UnmodifiableMapCursor.getValue()`](org/graalvm/collections/UnmodifiableMapCursor.md#getValue%28%29), method: The value of the current entry.
- [`EconomicMapWrap.getValues()`](org/graalvm/collections/EconomicMapWrap.md#getValues%28%29), method: Returns a [`Iterable`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html) view of the values contained in this map.
- [`UnmodifiableEconomicMap.getValues()`](org/graalvm/collections/UnmodifiableEconomicMap.md#getValues%28%29), method: Returns a [`Iterable`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Iterable.html) view of the values contained in this map.

## H

- [`Pair.hashCode()`](org/graalvm/collections/Pair.md#hashCode%28%29), method
- [`Equivalence.hashCode(Object)`](org/graalvm/collections/Equivalence.md#hashCode%28java.lang.Object%29), method: Returns the hash code of a non-`null` argument `o`.
- [`EconomicMapUtil.hashCode(UnmodifiableEconomicMap)`](org/graalvm/collections/EconomicMapUtil.md#hashCode%28org.graalvm.collections.UnmodifiableEconomicMap%29), method: Computes an order-independent hash code for an [`EconomicMap`](org/graalvm/collections/EconomicMap.md).
- [`LockFreePrefixTree.HeapAllocator`](org/graalvm/collections/LockFreePrefixTree.HeapAllocator.md), class in org.graalvm.collections: Allocator that allocates objects directly on the managed heap.
- [`LockFreePrefixTree.HeapAllocator()`](org/graalvm/collections/LockFreePrefixTree.HeapAllocator.md#%3Cinit%3E%28%29), constructor: Creates a new HeapAllocator instance.

## I

- [`Equivalence.IDENTITY`](org/graalvm/collections/Equivalence.md#IDENTITY), field: Identity equivalence using `==` to check equality and [`hashCode()`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode%28%29) for obtaining hash values.
- [`Equivalence.IDENTITY_WITH_SYSTEM_HASHCODE`](org/graalvm/collections/Equivalence.md#IDENTITY_WITH_SYSTEM_HASHCODE), field: Identity equivalence using `==` to check equality and [`System.identityHashCode(Object)`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/System.html#identityHashCode%28java.lang.Object%29) for obtaining hash values.
- [`LockFreePrefixTree.Node.incValue()`](org/graalvm/collections/LockFreePrefixTree.Node.md#incValue%28%29), method: Increment value.
- [`SeqLockPrefixTree.Node.incValue()`](org/graalvm/collections/SeqLockPrefixTree.Node.md#incValue%28%29), method: Increment value.
- [`EconomicMapWrap.isEmpty()`](org/graalvm/collections/EconomicMapWrap.md#isEmpty%28%29), method: Returns `true` if this map contains no key-value mappings.
- [`UnmodifiableEconomicMap.isEmpty()`](org/graalvm/collections/UnmodifiableEconomicMap.md#isEmpty%28%29), method: Returns `true` if this map contains no key-value mappings.
- [`UnmodifiableEconomicSet.isEmpty()`](org/graalvm/collections/UnmodifiableEconomicSet.md#isEmpty%28%29), method: Returns `true` if this set contains no elements.

## K

- [`EconomicMapUtil.keySet(EconomicMap)`](org/graalvm/collections/EconomicMapUtil.md#keySet%28org.graalvm.collections.EconomicMap%29), method: Returns an [`EconomicSet`](org/graalvm/collections/EconomicSet.md) of the keys contained in a map.

## L

- [`EconomicMapUtil.lexicographicalComparator(Comparator, Comparator)`](org/graalvm/collections/EconomicMapUtil.md#lexicographicalComparator%28java.util.Comparator,java.util.Comparator%29), method: Creates a lexicographical map comparator using the provided key and value comparators.
- [`LockFreePool`](org/graalvm/collections/LockFreePool.md), class in org.graalvm.collections: Concurrent lock-free pool data structure.
- [`LockFreePool()`](org/graalvm/collections/LockFreePool.md#%3Cinit%3E%28%29), constructor
- [`LockFreePrefixTree`](org/graalvm/collections/LockFreePrefixTree.md), class in org.graalvm.collections: Thread-safe and lock-free prefix-tree implementation in which keys are sequences of 64-bit values, and the values are 64-bit values.
- [`LockFreePrefixTree(LockFreePrefixTree.Allocator)`](org/graalvm/collections/LockFreePrefixTree.md#%3Cinit%3E%28org.graalvm.collections.LockFreePrefixTree.Allocator%29), constructor: Create new [`LockFreePrefixTree`](org/graalvm/collections/LockFreePrefixTree.md) with root being a Node with key 0.

## M

- [`MapCursor`](org/graalvm/collections/MapCursor.md), interface in org.graalvm.collections: Cursor to iterate over a mutable map.

## N

- [`LockFreePrefixTree.Allocator.newHashChildren(int)`](org/graalvm/collections/LockFreePrefixTree.Allocator.md#newHashChildren%28int%29), method: Allocates a new reference array of child nodes stored as a hash table.
- [`LockFreePrefixTree.HeapAllocator.newHashChildren(int)`](org/graalvm/collections/LockFreePrefixTree.HeapAllocator.md#newHashChildren%28int%29), method: Allocates a new reference array of child nodes stored as a hash table.
- [`LockFreePrefixTree.ObjectPoolingAllocator.newHashChildren(int)`](org/graalvm/collections/LockFreePrefixTree.ObjectPoolingAllocator.md#newHashChildren%28int%29), method: Allocates a new reference array of child nodes stored as a hash table.
- [`LockFreePrefixTree.Allocator.newLinearChildren(int)`](org/graalvm/collections/LockFreePrefixTree.Allocator.md#newLinearChildren%28int%29), method: Allocates a new reference array of child nodes stored linearly.
- [`LockFreePrefixTree.HeapAllocator.newLinearChildren(int)`](org/graalvm/collections/LockFreePrefixTree.HeapAllocator.md#newLinearChildren%28int%29), method: Allocates a new reference array of child nodes stored linearly.
- [`LockFreePrefixTree.ObjectPoolingAllocator.newLinearChildren(int)`](org/graalvm/collections/LockFreePrefixTree.ObjectPoolingAllocator.md#newLinearChildren%28int%29), method: Allocates a new reference array of child nodes stored linearly.
- [`LockFreePrefixTree.Allocator.newNode(long)`](org/graalvm/collections/LockFreePrefixTree.Allocator.md#newNode%28long%29), method: Allocates a new Node object.
- [`LockFreePrefixTree.HeapAllocator.newNode(long)`](org/graalvm/collections/LockFreePrefixTree.HeapAllocator.md#newNode%28long%29), method: Allocates a new Node object.
- [`LockFreePrefixTree.ObjectPoolingAllocator.newNode(long)`](org/graalvm/collections/LockFreePrefixTree.ObjectPoolingAllocator.md#newNode%28long%29), method: Allocates a new Node object.
- [`LockFreePrefixTree.Node`](org/graalvm/collections/LockFreePrefixTree.Node.md), class in org.graalvm.collections
- [`SeqLockPrefixTree.Node`](org/graalvm/collections/SeqLockPrefixTree.Node.md), class in org.graalvm.collections

## O

- [`LockFreePrefixTree.ObjectPoolingAllocator`](org/graalvm/collections/LockFreePrefixTree.ObjectPoolingAllocator.md), class in org.graalvm.collections: Allocator that internally maintains several pools of preallocated objects, and allocates objects from those pools.
- [`LockFreePrefixTree.ObjectPoolingAllocator()`](org/graalvm/collections/LockFreePrefixTree.ObjectPoolingAllocator.md#%3Cinit%3E%28%29), constructor
- [`LockFreePrefixTree.ObjectPoolingAllocator(int)`](org/graalvm/collections/LockFreePrefixTree.ObjectPoolingAllocator.md#%3Cinit%3E%28int%29), constructor
- [`EconomicSet.of(E)`](org/graalvm/collections/EconomicSet.md#of%28E%29), method
- [`EconomicMap.of(K, V)`](org/graalvm/collections/EconomicMap.md#of%28K,V%29), method: Creates an [`EconomicMap`](org/graalvm/collections/EconomicMap.md) with one mapping.
- [`EconomicMap.of(K, V, K, V)`](org/graalvm/collections/EconomicMap.md#of%28K,V,K,V%29), method: Creates an [`EconomicMap`](org/graalvm/collections/EconomicMap.md) with two mappings.

## P

- [`Pair`](org/graalvm/collections/Pair.md), class in org.graalvm.collections: Utility class representing a pair of values.
- [`EconomicMap.put(K, V)`](org/graalvm/collections/EconomicMap.md#put%28K,V%29), method: Associates `value` with `key` in this map.
- [`EconomicMapWrap.put(K, V)`](org/graalvm/collections/EconomicMapWrap.md#put%28K,V%29), method: Associates `value` with `key` in this map.
- [`EconomicMap.putAll(EconomicMap)`](org/graalvm/collections/EconomicMap.md#putAll%28org.graalvm.collections.EconomicMap%29), method: Copies all the mappings from `other` to this map.
- [`EconomicMap.putAll(UnmodifiableEconomicMap)`](org/graalvm/collections/EconomicMap.md#putAll%28org.graalvm.collections.UnmodifiableEconomicMap%29), method: Copies all the mappings from `other` to this map.
- [`EconomicMap.putIfAbsent(K, V)`](org/graalvm/collections/EconomicMap.md#putIfAbsent%28K,V%29), method: If the specified key is not already associated with a value (or is mapped to `null`) associates it with the given value and returns `null`, else returns the current value.
- [`EconomicMapWrap.putIfAbsent(K, V)`](org/graalvm/collections/EconomicMapWrap.md#putIfAbsent%28K,V%29), method: If the specified key is not already associated with a value (or is mapped to `null`) associates it with the given value and returns `null`, else returns the current value.

## R

- [`MapCursor.remove()`](org/graalvm/collections/MapCursor.md#remove%28%29), method: Remove the current entry from the map.
- [`EconomicSet.remove(E)`](org/graalvm/collections/EconomicSet.md#remove%28E%29), method: Removes non-null `element` from this set if it is present.
- [`EconomicSet.removeAll(EconomicSet)`](org/graalvm/collections/EconomicSet.md#removeAll%28org.graalvm.collections.EconomicSet%29), method: Removes from this set all of its elements that are contained in `other`.
- [`EconomicSet.removeAll(Iterable)`](org/graalvm/collections/EconomicSet.md#removeAll%28java.lang.Iterable%29), method: Removes from this set all of its elements that are contained in `values`.
- [`EconomicSet.removeAll(Iterator)`](org/graalvm/collections/EconomicSet.md#removeAll%28java.util.Iterator%29), method: Removes from this set all of its elements that are enumerated by `iterator`.
- [`UnmodifiableEconomicSet.removeIf(Predicate)`](org/graalvm/collections/UnmodifiableEconomicSet.md#removeIf%28java.util.function.Predicate%29), method
- [`EconomicMap.removeKey(K)`](org/graalvm/collections/EconomicMap.md#removeKey%28K%29), method: Removes the mapping for `key` from this map if it is present.
- [`EconomicMapWrap.removeKey(K)`](org/graalvm/collections/EconomicMapWrap.md#removeKey%28K%29), method: Removes the mapping for `key` from this map if it is present.
- [`EconomicMap.replaceAll(BiFunction)`](org/graalvm/collections/EconomicMap.md#replaceAll%28java.util.function.BiFunction%29), method: Replaces each entry's value with the result of invoking `function` on that entry until all entries have been processed or the function throws an exception.
- [`EconomicMapWrap.replaceAll(BiFunction)`](org/graalvm/collections/EconomicMapWrap.md#replaceAll%28java.util.function.BiFunction%29), method: Replaces each entry's value with the result of invoking `function` on that entry until all entries have been processed or the function throws an exception.
- [`LockFreePrefixTree.reset()`](org/graalvm/collections/LockFreePrefixTree.md#reset%28%29), method: Resets the tree.
- [`EconomicSet.retainAll(EconomicSet)`](org/graalvm/collections/EconomicSet.md#retainAll%28org.graalvm.collections.EconomicSet%29), method: Removes from this set all of its elements that are not contained in `other`.
- [`LockFreePrefixTree.root()`](org/graalvm/collections/LockFreePrefixTree.md#root%28%29), method: The root node of the tree.
- [`SeqLockPrefixTree.root()`](org/graalvm/collections/SeqLockPrefixTree.md#root%28%29), method: The root node of the tree.

## S

- [`SeqLockPrefixTree`](org/graalvm/collections/SeqLockPrefixTree.md), class in org.graalvm.collections: Thread-safe prefix-tree implementation in which keys are sequences of 64-bit values, and the values are 64-bit values.
- [`SeqLockPrefixTree()`](org/graalvm/collections/SeqLockPrefixTree.md#%3Cinit%3E%28%29), constructor: Create new [`SeqLockPrefixTree`](org/graalvm/collections/SeqLockPrefixTree.md) with root being a Node with key 0.
- [`SeqLockPrefixTree.Node.seqlockValue()`](org/graalvm/collections/SeqLockPrefixTree.Node.md#seqlockValue%28%29), method
- [`LockFreePrefixTree.Node.setValue(long)`](org/graalvm/collections/LockFreePrefixTree.Node.md#setValue%28long%29), method: Set the value for the [`Node`](org/graalvm/collections/LockFreePrefixTree.Node.md).
- [`SeqLockPrefixTree.Node.setValue(long)`](org/graalvm/collections/SeqLockPrefixTree.Node.md#setValue%28long%29), method: Set the value for the [`LockFreePrefixTree.Node`](org/graalvm/collections/LockFreePrefixTree.Node.md).
- [`MapCursor.setValue(V)`](org/graalvm/collections/MapCursor.md#setValue%28V%29), method: Set the value of the current entry.
- [`LockFreePrefixTree.Allocator.shutdown()`](org/graalvm/collections/LockFreePrefixTree.Allocator.md#shutdown%28%29), method: Releases the allocator's resources.
- [`LockFreePrefixTree.HeapAllocator.shutdown()`](org/graalvm/collections/LockFreePrefixTree.HeapAllocator.md#shutdown%28%29), method: Releases the allocator's resources.
- [`LockFreePrefixTree.ObjectPoolingAllocator.shutdown()`](org/graalvm/collections/LockFreePrefixTree.ObjectPoolingAllocator.md#shutdown%28%29), method: Releases the allocator's resources.
- [`EconomicMapWrap.size()`](org/graalvm/collections/EconomicMapWrap.md#size%28%29), method: Returns the number of key-value mappings in this map.
- [`UnmodifiableEconomicMap.size()`](org/graalvm/collections/UnmodifiableEconomicMap.md#size%28%29), method: Returns the number of key-value mappings in this map.
- [`UnmodifiableEconomicSet.size()`](org/graalvm/collections/UnmodifiableEconomicSet.md#size%28%29), method: Returns the number of elements in this set.
- [`LockFreePrefixTree.ObjectPoolingAllocator.status()`](org/graalvm/collections/LockFreePrefixTree.ObjectPoolingAllocator.md#status%28%29), method

## T

- [`UnmodifiableEconomicSet.toArray(E[])`](org/graalvm/collections/UnmodifiableEconomicSet.md#toArray%28E[]%29), method: Stores all the elements in this set into `target`.
- [`UnmodifiableEconomicSet.toHashSet()`](org/graalvm/collections/UnmodifiableEconomicSet.md#toHashSet%28%29), method
- [`UnmodifiableEconomicSet.toList()`](org/graalvm/collections/UnmodifiableEconomicSet.md#toList%28%29), method
- [`LockFreePrefixTree.topDown(C, BiFunction, BiConsumer)`](org/graalvm/collections/LockFreePrefixTree.md#topDown%28C,java.util.function.BiFunction,java.util.function.BiConsumer%29), method: Traverse the tree top-down while maintaining a context.
- [`SeqLockPrefixTree.Node.topDown(C, BiFunction, BiConsumer)`](org/graalvm/collections/SeqLockPrefixTree.Node.md#topDown%28C,java.util.function.BiFunction,java.util.function.BiConsumer%29), method: Traverse the tree top-down while maintaining a context.
- [`EconomicMapWrap.toString()`](org/graalvm/collections/EconomicMapWrap.md#toString%28%29), method
- [`LockFreePrefixTree.Node.toString()`](org/graalvm/collections/LockFreePrefixTree.Node.md#toString%28%29), method
- [`Pair.toString()`](org/graalvm/collections/Pair.md#toString%28%29), method
- [`SeqLockPrefixTree.Node.toString()`](org/graalvm/collections/SeqLockPrefixTree.Node.md#toString%28%29), method
- [`EconomicMap.trimToSize()`](org/graalvm/collections/EconomicMap.md#trimToSize%28%29), method: Trims any implementation-specific storage so it does not retain unused capacity.

## U

- [`UnmodifiableEconomicMap`](org/graalvm/collections/UnmodifiableEconomicMap.md), interface in org.graalvm.collections: Unmodifiable memory efficient map.
- [`UnmodifiableEconomicSet`](org/graalvm/collections/UnmodifiableEconomicSet.md), interface in org.graalvm.collections: Unmodifiable memory efficient set data structure.
- [`UnmodifiableMapCursor`](org/graalvm/collections/UnmodifiableMapCursor.md), interface in org.graalvm.collections: Cursor to iterate over a map without changing its contents.

## V

- [`LockFreePrefixTree.Node.value()`](org/graalvm/collections/LockFreePrefixTree.Node.md#value%28%29), method
- [`SeqLockPrefixTree.Node.value()`](org/graalvm/collections/SeqLockPrefixTree.Node.md#value%28%29), method

## W

- [`EconomicMap.wrapMap(Map)`](org/graalvm/collections/EconomicMap.md#wrapMap%28java.util.Map%29), method: Wraps an existing [`Map`](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/Map.html) as an [`EconomicMap`](org/graalvm/collections/EconomicMap.md).
