SimpleKeyValueModel

KeyValueModel that simply wraps a Map

Parameters

map

containing data

Constructors

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

Properties

Link copied to clipboard
open val isEmpty: Boolean

Indicates whether the model has any contents

Link copied to clipboard
open val size: Int

Number of elements in the model

Functions

Link copied to clipboard
open fun contains(value: Pair<K, V>): Boolean
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.

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