DittoRGA

open class DittoRGA

Represents a CRDT Replicated Growable Array (DittoRGA) that can be upserted as part of a document or assigned to a property during an update of a document.

Constructors

Link copied to clipboard
fun DittoRGA(initialValue: List<Any?>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun cbor(): Map<String, Any?>

Encodes the DittoRGA into a Map, ready to be encoded as CBOR.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(index: Int): Any?

Get the element at the given index. Enables indexed access to the DittoRGA values.

Link copied to clipboard
open override fun hashCode(): Int

Properties

Link copied to clipboard
val value: List<Any?>

Array representation of the DittoRGA.

Inheritors

Link copied to clipboard