SequenceNumber
A sequence number is a monotonically increasing value defined for a site. It can be seen as a logical timestamp.
Parameters
index
the sequence number for this SequenceNumber.
Types
Functions
Link copied to clipboard
Compares this SequenceNumber with another SequenceNumber.
Link copied to clipboard
Increments this value.
Link copied to clipboard
Adds a certain count to this value.
Extensions
Link copied to clipboard
false
when this is SequenceNumber.Unspecified.
Link copied to clipboard
true
when this is SequenceNumber.Unspecified.
Link copied to clipboard
inline fun SequenceNumber.takeOrElse(block: () -> SequenceNumber): SequenceNumber
Content copied to clipboard
If this SequenceNumber then this is returned, otherwise block is executed and its result is returned.
Link copied to clipboard
Creates a UInt from a SequenceNumber.