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

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

Types

Companion
Link copied to clipboard
object Companion

Functions

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

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

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

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

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

Properties

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

Array representation of the DittoRGA.

Inheritors

DittoMutableRGA
Link copied to clipboard