ModelMap

class ModelMap<K, V> : MutableMap<K, V>, Framed
kotlin.Any
   ↳ androidx.compose.frames.ModelMap

Summary

Public constructors

Public methods

Unit

Boolean
containsKey(key: K)

Boolean
containsValue(value: V)

V?
get(key: K)

Boolean

Unit

Add a new state record to the beginning of a list.

V?
put(key: K, value: V)

Unit
putAll(from: Map<out K, V>)

V?
remove(key: K)

Properties

MutableSet<MutableEntry<K, V>>

Record

The first state record in a linked list of state records.

MutableSet<K>

Int

MutableCollection<V>

Public constructors

<init>

ModelMap()

Public methods

clear

fun clear(): Unit

containsKey

fun containsKey(key: K): Boolean

containsValue

fun containsValue(value: V): Boolean

get

fun get(key: K): V?

isEmpty

fun isEmpty(): Boolean

prependFrameRecord

fun prependFrameRecord(value: Record): Unit

Add a new state record to the beginning of a list. After this call firstFrameRecord should be value.

put

fun put(
    key: K,
    value: V
): V?

putAll

fun putAll(from: Map<out K, V>): Unit

remove

fun remove(key: K): V?

Properties

entries

val entries: MutableSet<MutableEntry<K, V>>

firstFrameRecord

val firstFrameRecord: Record

The first state record in a linked list of state records.

keys

val keys: MutableSet<K>

size

val size: Int

values

val values: MutableCollection<V>