Package-level declarations

Types

Link copied to clipboard
class DirtyList<T>(delegate: MutableList<T>, callback: (item: T, list: DirtyList<T>) -> Unit = { _, _ -> })

A mutable list that tracks every mutation, including iterator and sub-list changes.

Link copied to clipboard
class DirtyMap<K, V>(delegate: MutableMap<K, V>, callback: (key: K, value: V, map: DirtyMap<K, V>) -> Unit = { _, _, _ -> })

A mutable map that tracks every mutation, including mutations through its views.

Link copied to clipboard
typealias JsonArrayList = List<<Error class: unknown class>>

Properties

Link copied to clipboard
val <Error class: unknown class>.extractedContent: Any?

Extracts the content of a JsonElement to a type that can be used in Kotlin.

Functions

Link copied to clipboard
fun Any?.toJsonElement(): <Error class: unknown class>

Converts Any? to a JsonElement.

fun Array<*>.toJsonElement(): <Error class: unknown class>

Converts Array<*> to a JsonElement.

fun Collection<*>.toJsonElement(): <Error class: unknown class>

Converts Collection<*> to a JsonElement.

fun Map<*, *>.toJsonElement(): <Error class: unknown class>

Converts Map<*, *> to a JsonElement.

Link copied to clipboard
fun <T> MutableList<T>.trackChanges(callback: (item: T, list: DirtyList<T>) -> Unit = { _, _ -> }): DirtyList<T>

Track changes in a mutable list.

fun <K, V> MutableMap<K, V>.trackChanges(callback: (key: K, value: V, map: DirtyMap<K, V>) -> Unit = { _, _, _ -> }): DirtyMap<K, V>

Track changes in a mutable map.