KeyValueModel

interface KeyValueModel<K, V> : ListModel<Pair<K, V>> (source)

Map based model used with KeyValueTable.

Inheritors

Inherited properties

Link copied to clipboard
open val isEmpty: Boolean

Indicates whether the model has any contents

Link copied to clipboard
abstract val size: Int

Number of elements in the model

Functions

Link copied to clipboard
abstract fun containsKey(key: K): Boolean

Tells whether the model contains the given key.

Link copied to clipboard
abstract fun containsValue(value: V): Boolean

Tells whether the model contains the given value.

Inherited functions

Link copied to clipboard
abstract fun contains(value: Pair<K, V>): Boolean
Link copied to clipboard
abstract operator fun get(index: Int): Result<Pair<K, V>>
Link copied to clipboard
abstract operator fun iterator(): Iterator<Pair<K, V>>
Link copied to clipboard
abstract fun section(range: ClosedRange<Int>): List<Pair<K, V>>