BsonArray

Pure Kotlin implementation of opensavvy.ktmongo.bson.BsonArray.

To create instances of this class, see BsonFactory.

This page describes the BSON multiplatform implementation. To learn more about the general BSON operations, see opensavvy.ktmongo.bson.BsonArray.

Navigating BSON types

This class is part of the BSON trinity:

Usage

val bson: BsonArray = …

for (element in bson) {
println("Element: $element")
}

Thread-safety

This class is not thread-safe. Although it is not possible to mutate its state, this class uses internal mutation to lazily decode the BSON stream.

Types

Link copied to clipboard

Serializer for the multiplatform opensavvy.ktmongo.bson.multiplatform.BsonArray implementation.

Properties

Link copied to clipboard
open override val factory: BsonFactory
Link copied to clipboard
open val indices: IntRange
Link copied to clipboard
open val lastIndex: Int
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun asIterable(): Iterable<BsonValue>
Link copied to clipboard
open override fun asList(): List<BsonValue>
Link copied to clipboard
open override fun asSequence(): Sequence<BsonValue>
Link copied to clipboard
open override fun asValue(): BsonValue
Link copied to clipboard
Link copied to clipboard
open fun <T> decodeElements(type: KType): List<T>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): BsonValue?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open fun isNotEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<BsonValue>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun withIndex(): Iterable<IndexedValue<BsonValue>>