public class RecordPatch
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
deviceLastModifiedDate
The last modified date of the client device.
|
private java.lang.String |
key
The key associated with the record patch.
|
private java.lang.String |
op
An operation, either replace or remove.
|
private java.lang.Long |
syncCount
Last known server sync count for this record.
|
private java.lang.String |
value
The value associated with the record patch.
|
Constructor and Description |
---|
RecordPatch() |
Modifier and Type | Method and Description |
---|---|
RecordPatch |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getDeviceLastModifiedDate()
The last modified date of the client device.
|
java.lang.String |
getKey()
The key associated with the record patch.
|
java.lang.String |
getOp()
An operation, either replace or remove.
|
java.lang.Long |
getSyncCount()
Last known server sync count for this record.
|
java.lang.String |
getValue()
The value associated with the record patch.
|
int |
hashCode() |
void |
setDeviceLastModifiedDate(java.util.Date deviceLastModifiedDate)
The last modified date of the client device.
|
void |
setKey(java.lang.String key)
The key associated with the record patch.
|
void |
setOp(Operation op)
An operation, either replace or remove.
|
void |
setOp(java.lang.String op)
An operation, either replace or remove.
|
void |
setSyncCount(java.lang.Long syncCount)
Last known server sync count for this record.
|
void |
setValue(java.lang.String value)
The value associated with the record patch.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RecordPatch |
withDeviceLastModifiedDate(java.util.Date deviceLastModifiedDate)
The last modified date of the client device.
|
RecordPatch |
withKey(java.lang.String key)
The key associated with the record patch.
|
RecordPatch |
withOp(Operation op)
An operation, either replace or remove.
|
RecordPatch |
withOp(java.lang.String op)
An operation, either replace or remove.
|
RecordPatch |
withSyncCount(java.lang.Long syncCount)
Last known server sync count for this record.
|
RecordPatch |
withValue(java.lang.String value)
The value associated with the record patch.
|
private java.lang.String op
private java.lang.String key
private java.lang.String value
private java.lang.Long syncCount
private java.util.Date deviceLastModifiedDate
public void setOp(java.lang.String op)
op
- An operation, either replace or remove.Operation
public java.lang.String getOp()
Operation
public RecordPatch withOp(java.lang.String op)
op
- An operation, either replace or remove.Operation
public void setOp(Operation op)
op
- An operation, either replace or remove.Operation
public RecordPatch withOp(Operation op)
op
- An operation, either replace or remove.Operation
public void setKey(java.lang.String key)
key
- The key associated with the record patch.public java.lang.String getKey()
public RecordPatch withKey(java.lang.String key)
key
- The key associated with the record patch.public void setValue(java.lang.String value)
value
- The value associated with the record patch.public java.lang.String getValue()
public RecordPatch withValue(java.lang.String value)
value
- The value associated with the record patch.public void setSyncCount(java.lang.Long syncCount)
syncCount
- Last known server sync count for this record. Set to 0 if unknown.public java.lang.Long getSyncCount()
public RecordPatch withSyncCount(java.lang.Long syncCount)
syncCount
- Last known server sync count for this record. Set to 0 if unknown.public void setDeviceLastModifiedDate(java.util.Date deviceLastModifiedDate)
deviceLastModifiedDate
- The last modified date of the client device.public java.util.Date getDeviceLastModifiedDate()
public RecordPatch withDeviceLastModifiedDate(java.util.Date deviceLastModifiedDate)
deviceLastModifiedDate
- The last modified date of the client device.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RecordPatch clone()
clone
in class java.lang.Object