public class Record
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 for the record.
|
private java.lang.String |
lastModifiedBy
The user/device that made the last change to this record.
|
private java.util.Date |
lastModifiedDate
The date on which the record was last modified.
|
private java.lang.Long |
syncCount
The server sync count for this record.
|
private java.lang.String |
value
The value for the record.
|
Constructor and Description |
---|
Record() |
Modifier and Type | Method and Description |
---|---|
Record |
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 for the record.
|
java.lang.String |
getLastModifiedBy()
The user/device that made the last change to this record.
|
java.util.Date |
getLastModifiedDate()
The date on which the record was last modified.
|
java.lang.Long |
getSyncCount()
The server sync count for this record.
|
java.lang.String |
getValue()
The value for the record.
|
int |
hashCode() |
void |
setDeviceLastModifiedDate(java.util.Date deviceLastModifiedDate)
The last modified date of the client device.
|
void |
setKey(java.lang.String key)
The key for the record.
|
void |
setLastModifiedBy(java.lang.String lastModifiedBy)
The user/device that made the last change to this record.
|
void |
setLastModifiedDate(java.util.Date lastModifiedDate)
The date on which the record was last modified.
|
void |
setSyncCount(java.lang.Long syncCount)
The server sync count for this record.
|
void |
setValue(java.lang.String value)
The value for the record.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Record |
withDeviceLastModifiedDate(java.util.Date deviceLastModifiedDate)
The last modified date of the client device.
|
Record |
withKey(java.lang.String key)
The key for the record.
|
Record |
withLastModifiedBy(java.lang.String lastModifiedBy)
The user/device that made the last change to this record.
|
Record |
withLastModifiedDate(java.util.Date lastModifiedDate)
The date on which the record was last modified.
|
Record |
withSyncCount(java.lang.Long syncCount)
The server sync count for this record.
|
Record |
withValue(java.lang.String value)
The value for the record.
|
private java.lang.String key
private java.lang.String value
private java.lang.Long syncCount
private java.util.Date lastModifiedDate
private java.lang.String lastModifiedBy
private java.util.Date deviceLastModifiedDate
public void setKey(java.lang.String key)
key
- The key for the record.public java.lang.String getKey()
public Record withKey(java.lang.String key)
key
- The key for the record.public void setValue(java.lang.String value)
value
- The value for the record.public java.lang.String getValue()
public Record withValue(java.lang.String value)
value
- The value for the record.public void setSyncCount(java.lang.Long syncCount)
syncCount
- The server sync count for this record.public java.lang.Long getSyncCount()
public Record withSyncCount(java.lang.Long syncCount)
syncCount
- The server sync count for this record.public void setLastModifiedDate(java.util.Date lastModifiedDate)
lastModifiedDate
- The date on which the record was last modified.public java.util.Date getLastModifiedDate()
public Record withLastModifiedDate(java.util.Date lastModifiedDate)
lastModifiedDate
- The date on which the record was last modified.public void setLastModifiedBy(java.lang.String lastModifiedBy)
lastModifiedBy
- The user/device that made the last change to this record.public java.lang.String getLastModifiedBy()
public Record withLastModifiedBy(java.lang.String lastModifiedBy)
lastModifiedBy
- The user/device that made the last change to this record.public void setDeviceLastModifiedDate(java.util.Date deviceLastModifiedDate)
deviceLastModifiedDate
- The last modified date of the client device.public java.util.Date getDeviceLastModifiedDate()
public Record 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 Record clone()
clone
in class java.lang.Object