Package-level declarations

Types

Link copied to clipboard
expect class ConcurrentMap<Key, Value>(initialCapacity: Int = INITIAL_CAPACITY) : MutableMap<Key, Value>

Ktor concurrent map implementation. Please do not use it.

actual class ConcurrentMap<Key, Value>(initialCapacity: Int) : MutableMap<Key, Value>

Ktor concurrent map implementation. Please do not use it.

actual class ConcurrentMap<Key, Value>(initialCapacity: Int) : MutableMap<Key, Value>

Ktor concurrent map implementation. Please do not use it.

actual class ConcurrentMap<Key, Value>(initialCapacity: Int) : MutableMap<Key, Value>

Ktor concurrent map implementation. Please do not use it.

Link copied to clipboard

This is an internal implementation for copy-on-write concurrent map. It is very limited since it is not intended as general purpose implementation.

Link copied to clipboard

Lock-free Multiply-Producer Single-Consumer Queue. Note: This queue is NOT linearizable. It provides only quiescent consistency for its operations.

Link copied to clipboard
class SerializedMapValue<T>(key: String, serialize: (T) -> String, deserialize: (String) -> T)

Simple type for handling serialization with StringMap delegation.

Link copied to clipboard
interface StringMap
Link copied to clipboard

Functions

Link copied to clipboard

Treat the map key properties as a Boolean

Link copied to clipboard

Concurrent set implemented on top of ConcurrentMap

Link copied to clipboard
operator fun <T> SerializedMapValue<T>.getValue(thisRef: StringMap, property: KProperty<*>): T?

Simplifies property access delegation for HxAttributes when setting attribute values from a string constant.

operator fun String.getValue(thisRef: StringMap, property: KProperty<*>): String?

Simplifies property access delegation for string maps when using a string constant.

Link copied to clipboard
operator fun <T> SerializedMapValue<T>.setValue(thisRef: StringMap, property: KProperty<*>, value: T?)

Simplifies property assignment delegation for HxAttributes when setting attribute values from a string constant.

operator fun String.setValue(thisRef: StringMap, property: KProperty<*>, value: String?)

Simplifies property assignment delegation for string maps when using a string constant.

Link copied to clipboard
Link copied to clipboard
fun <T> sharedListOf(vararg values: T): MutableList<T>
Link copied to clipboard
fun <K : Any, V : Any> sharedMap(initialCapacity: Int = 8): MutableMap<K, V>