Package io.keikai.doc.collab.utils
Class ID
java.lang.Object
io.keikai.doc.collab.utils.ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancompareIDs(ID a, ID b) Compare IDsstatic IDcreateID(int client, int clock) static StringfindRootTypeKey(AbstractType type) The top types are mapped from y.share.get(keyname) => type.intintgetClock()static IDvoidsetClient(int client) voidsetClock(int clock) static void
-
Constructor Details
-
ID
public ID(int client, int clock)
-
-
Method Details
-
getClient
public int getClient() -
setClient
public void setClient(int client) -
getClock
public int getClock() -
setClock
public void setClock(int clock) -
compareIDs
Compare IDs- Parameters:
a- might be nullb- might be null- Returns:
-
createID
-
writeID
-
readID
-
findRootTypeKey
The top types are mapped from y.share.get(keyname) => type. `type` does not store any information about the `keyname`. This function finds the correct `keyname` for `type` and throws otherwise.- Parameters:
type- Internal used only.
-