Map

class Map : Sized, Map<Key, Reference>

A Map class that provide support to access Key-Value data from Flexbuffers.

Types

Link copied to clipboard
data class Entry(val key: Key, val value: Reference) : Map.Entry<Key, Reference>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val end: Int
Link copied to clipboard
open override val entries: Set<Map.Entry<Key, Reference>>
Link copied to clipboard
open override val keys: Set<Key>
Link copied to clipboard
open val size: Int
Link copied to clipboard
open override val values: Collection<Reference>

Returns a Vector for accessing all values in the Map.

Functions

Link copied to clipboard
operator fun contains(key: String): Boolean

Checks whether the map contains a key.

Link copied to clipboard
open override fun containsKey(key: Key): Boolean
Link copied to clipboard
open override fun containsValue(value: Reference): Boolean
Link copied to clipboard
open operator override fun get(key: Key): Reference

Returns a Reference from the Map for a given Key.

operator fun get(index: Int): Reference

Returns a Reference from the Map at position index. Returns a null reference

operator fun get(key: String): Reference

Returns a Reference from the Map for a given String.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
fun keyAsString(index: Int): String

Returns a Key as String for a given position index in the Map.

Link copied to clipboard
fun keyAt(index: Int): Key

Returns a Key for a given position index in the Map.

Link copied to clipboard

Returns a minified version of this FlexBuffer as a JSON.