public class JsonPatchEdit extends Object implements Edit<JsonPatchDiff>
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonPatchEdit.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
checksum()
A checksum of the opposing sides shadow document.
|
long |
clientVersion()
The client version that edit is related to.
|
JsonPatchDiff |
diff()
The
Diff for this edit. |
boolean |
equals(Object o) |
int |
hashCode() |
long |
serverVersion()
The server version that edit is related to.
|
String |
toString() |
static JsonPatchEdit.Builder |
withChecksum(String checksum) |
static JsonPatchEdit.Builder |
withPatch(com.github.fge.jsonpatch.JsonPatch patch) |
public long clientVersion()
EditclientVersion in interface Edit<JsonPatchDiff>long the client version that this edit is based on.public long serverVersion()
EditserverVersion in interface Edit<JsonPatchDiff>long the server version that this edit is based on.public String checksum()
Editchecksum in interface Edit<JsonPatchDiff>String the opposing side's checksum of the shadow documentpublic JsonPatchDiff diff()
EditDiff for this edit.diff in interface Edit<JsonPatchDiff>T the diff that represents the changes for this editpublic static JsonPatchEdit.Builder withPatch(com.github.fge.jsonpatch.JsonPatch patch)
public static JsonPatchEdit.Builder withChecksum(String checksum)
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.