VersionId

data class VersionId(version: Long) : Comparable<VersionId>

A VersionId representing the transactional id of the Realm itself or it's objects.

Realm is an MVCC database. This means that at any given time, multiple version of data can be visible. This class describes the version of such data.

The version of a Realm will change whenever a write is committed.

Constructors

VersionId
Link copied to clipboard
fun VersionId(version: Long)

Functions

compareTo
Link copied to clipboard
open operator override fun compareTo(other: VersionId): Int

Properties

version
Link copied to clipboard
val version: Long