Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "DeltaCRDT provides companion getType method"

Merged Yannick Li requested to merge 84-deltacrdt-provides-companion-gettype-method into dev
10 files
+ 90
1
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -259,6 +259,15 @@ class BCounter : DeltaCRDT() {
}
companion object {
/**
* Get the type name for serialization.
* @return the type as a string.
*/
@Name("getType")
fun getType(): String {
return "BCounter"
}
/**
* Deserializes a given json string in a crdt counter.
* @param json the given json string.
Loading