JsonArray

JsonArray represents a JSON array, but unlike regular JSON, it has TimeTickets created by logical clock to resolve conflicts.

Properties

Link copied to clipboard
Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open operator override fun contains(element: JsonElement): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<JsonElement>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in JsonElement>)
Link copied to clipboard
operator fun get(createdAt: TimeTicket): JsonElement?
operator fun get(index: Int): JsonElement?
Link copied to clipboard
inline fun <T : JsonElement> getAs(createdAt: TimeTicket): T?
inline fun <T : JsonElement> getAs(index: Int): T?
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<JsonElement>
Link copied to clipboard
fun moveAfter(prevCreatedAt: TimeTicket, createdAt: TimeTicket)
Link copied to clipboard
fun moveBefore(nextCreatedAt: TimeTicket, createdAt: TimeTicket)
Link copied to clipboard
fun moveFront(createdAt: TimeTicket)
Link copied to clipboard
fun moveLast(createdAt: TimeTicket)
Link copied to clipboard
Link copied to clipboard
fun put(value: JsonPrimitive, prevCreatedAt: TimeTicket? = null)
fun put(value: Date, prevCreatedAt: TimeTicket? = null)
fun put(value: Boolean, prevCreatedAt: TimeTicket? = null)
fun put(value: ByteArray, prevCreatedAt: TimeTicket? = null)
fun put(value: Double, prevCreatedAt: TimeTicket? = null)
fun put(value: Int, prevCreatedAt: TimeTicket? = null)
fun put(value: Long, prevCreatedAt: TimeTicket? = null)
fun put(value: String, prevCreatedAt: TimeTicket? = null)
Link copied to clipboard
fun putNewArray(prevCreatedAt: TimeTicket? = null): JsonArray
Link copied to clipboard
fun putNewObject(prevCreatedAt: TimeTicket? = null): JsonObject
Link copied to clipboard
fun remove(createdAt: TimeTicket): JsonElement
Link copied to clipboard
fun removeAt(index: Int): JsonElement?
Link copied to clipboard
open override fun spliterator(): Spliterator<JsonElement>
Link copied to clipboard
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>
Link copied to clipboard
fun toJson(): String
Link copied to clipboard
open override fun toString(): String