BsonArray
A BSON array.
To create instances of this class, see BsonFactory.
Navigating BSON types
This interface is part of the BSON trinity:
BsonDocument represents an entire BSON document.
BsonArray represents an array of BSON values.
BsonValue represents a single value in isolation.
Usage
val bson: BsonArray = …
for (element in bson) {
println("Element: $element")
}Equality
Different implementations of this interface are considered equal if they represent the same value with the same type. That is, both values would result in the exact same BSON sent over the wire.
The methods BsonArray.Companion.equals and BsonArray.Companion.hashCode are provided as default implementations.
Properties
Functions
Creates an Iterable that wraps this array.
Creates a Sequence of the items in this array.
Returns true if this array has at least one element.
Iterates over this array, returning both each item and its index.