VersionVector

class VersionVector

This class represents a version vector.

Constructors

VersionVector
Link copied to clipboard
common
fun VersionVector()
Default constructor.
VersionVector
Link copied to clipboard
common
fun VersionVector(vv: VersionVector)
Copy constructor.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

contains
Link copied to clipboard
common
fun contains(ts: Timestamp): Boolean
Returns if a given timestamp is contained in the version vector.
copy
Link copied to clipboard
common
fun copy(): VersionVector
Copies this version vector.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
Overrides the equals function of object
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
Overrides the hashCode function of object
isGreater
Link copied to clipboard
common
fun isGreater(vv: VersionVector): Boolean
Checks that this version vector is strictly greater than a given version vector.
isGreaterOrEquals
Link copied to clipboard
common
fun isGreaterOrEquals(vv: VersionVector): Boolean
Checks that this version vector is greater than or equal a given version vector.
isNotComparable
Link copied to clipboard
common
fun isNotComparable(vv: VersionVector): Boolean
Checks that this version vector is not comparable to a given version vector.
isSmaller
Link copied to clipboard
common
fun isSmaller(vv: VersionVector): Boolean
Checks that this version vector is strictly smaller than a given version vector.
isSmallerOrEquals
Link copied to clipboard
common
fun isSmallerOrEquals(vv: VersionVector): Boolean
Checks that this version vector is smaller than or equal a given version vector.
max
Link copied to clipboard
common
fun max(): Int
Gets the maximal value stored in this version vector.
toJson
Link copied to clipboard
common
fun toJson(): String
Serializes this version vector to a json string.
toString
Link copied to clipboard
common
open override fun toString(): String
Overrides the toString function of object
update
Link copied to clipboard
common
fun update(ts: Timestamp)
Adds a given timestamp to this version vector.
fun update(vv: VersionVector)
Updates this version vector with a given version vector by taking the maximum value for each entry.