Package-level declarations

Types

Link copied to clipboard
class AccessOrderLinkedHashMap<K, V>(initialCapacity: Int = 16, loadFactor: Float = 0.75f) : MutableMap<K, V>

A MutableMap implementation that maintains access-order iteration. The least-recently-used (LRU) entry is at the front of the iteration order.

Link copied to clipboard
actual class ConcurrentHashMap<K, V> : MutableMap<K, V>

Android implementation of ConcurrentHashMap that delegates to java.util.concurrent.ConcurrentHashMap. This provides true thread-safe concurrent access with high performance on the Android platform.

expect class ConcurrentHashMap<K, V> : MutableMap<K, V>

A thread-safe MutableMap implementation that provides concurrent access. Platform-specific implementations ensure thread safety according to the platform's concurrency model.

actual class ConcurrentHashMap<K, V> : MutableMap<K, V>

JVM implementation of ConcurrentHashMap that delegates to java.util.concurrent.ConcurrentHashMap. This provides true thread-safe concurrent access with high performance on the JVM platform.

actual class ConcurrentHashMap<K, V> : MutableMap<K, V>

Native implementation of ConcurrentHashMap using atomic operations. This implementation uses AtomicReference for thread-safe access to the underlying map. Note: This provides basic thread safety but may not have the same performance characteristics as the JVM implementation for high-concurrency scenarios.

actual class ConcurrentHashMap<K, V> : MutableMap<K, V>

JavaScript implementation of ConcurrentHashMap that uses a regular MutableMap. JavaScript is single-threaded by default, so true concurrency is not needed. This implementation provides the same API but without thread-safety overhead.

Functions

Link copied to clipboard
inline operator fun <T> List<T?>.get(index: Int, default: T): T

Extension function for List<T?> that allows getting an element at a specified index with a default value if the element is null or the index is out of bounds.