c-crdtlib
/
crdtlib.utils
/
Timestamp
common
Timestamp
data class
Timestamp
(uid:
ClientUId
, cnt:
Int
)
Content copied to clipboard
This class represents a timestamp.
Types
Constructors
Functions
Properties
Constructors
Timestamp
Link copied to clipboard
common
fun
Timestamp
(uid:
ClientUId
, cnt:
Int
)
Content copied to clipboard
Types
Companion
Link copied to clipboard
common
object
Companion
Content copied to clipboard
Functions
compareTo
Link copied to clipboard
common
operator fun
compareTo
(other:
Timestamp
):
Int
Content copied to clipboard
Compares this timestamp to a given other timestamp.
component1
Link copied to clipboard
common
operator fun
component1
():
ClientUId
Content copied to clipboard
component2
Link copied to clipboard
common
operator fun
component2
():
Int
Content copied to clipboard
copy
Link copied to clipboard
common
fun
copy
(uid:
ClientUId
, cnt:
Int
):
Timestamp
Content copied to clipboard
equals
Link copied to clipboard
common
open operator override fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
hashCode
Link copied to clipboard
common
open override fun
hashCode
():
Int
Content copied to clipboard
toJson
Link copied to clipboard
common
fun
toJson
():
String
Content copied to clipboard
Serializes this timestamp to a json string.
toString
Link copied to clipboard
common
open override fun
toString
():
String
Content copied to clipboard
Properties
cnt
Link copied to clipboard
common
val
cnt
:
Int
Content copied to clipboard
the value associated to the timestamp.
uid
Link copied to clipboard
common
val
uid
:
ClientUId
Content copied to clipboard
the client unique id.