DittoRGA

open class DittoRGA

Represents a CRDT Replicated Growable Array (RGA)

RGAs are deprecated and you should instead use a DittoRegister containing an array.

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
var value: List<Any?>

Array representation of the DittoRGA.