SimpleKeyValueModel

KeyValueModel that simply wraps a Map

Parameters

map

containing data

Constructors

Link copied to clipboard
constructor(map: Map<K, V>)

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
open override fun containsKey(key: K): Boolean

Tells whether the model contains the given key.

Link copied to clipboard
open override 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>>