Class RecordPatch

    • Constructor Detail

      • RecordPatch

        public RecordPatch()
    • Method Detail

      • setOp

        public void setOp​(String op)
        An operation, either replace or remove.
        Parameters:
        op - An operation, either replace or remove.
        See Also:
        Operation
      • getOp

        public String getOp()
        An operation, either replace or remove.
        Returns:
        An operation, either replace or remove.
        See Also:
        Operation
      • withOp

        public RecordPatch withOp​(String op)
        An operation, either replace or remove.
        Parameters:
        op - An operation, either replace or remove.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Operation
      • setOp

        public void setOp​(Operation op)
        An operation, either replace or remove.
        Parameters:
        op - An operation, either replace or remove.
        See Also:
        Operation
      • withOp

        public RecordPatch withOp​(Operation op)
        An operation, either replace or remove.
        Parameters:
        op - An operation, either replace or remove.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Operation
      • setKey

        public void setKey​(String key)
        The key associated with the record patch.
        Parameters:
        key - The key associated with the record patch.
      • getKey

        public String getKey()
        The key associated with the record patch.
        Returns:
        The key associated with the record patch.
      • withKey

        public RecordPatch withKey​(String key)
        The key associated with the record patch.
        Parameters:
        key - The key associated with the record patch.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setValue

        public void setValue​(String value)
        The value associated with the record patch.
        Parameters:
        value - The value associated with the record patch.
      • getValue

        public String getValue()
        The value associated with the record patch.
        Returns:
        The value associated with the record patch.
      • withValue

        public RecordPatch withValue​(String value)
        The value associated with the record patch.
        Parameters:
        value - The value associated with the record patch.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSyncCount

        public void setSyncCount​(Long syncCount)
        Last known server sync count for this record. Set to 0 if unknown.
        Parameters:
        syncCount - Last known server sync count for this record. Set to 0 if unknown.
      • getSyncCount

        public Long getSyncCount()
        Last known server sync count for this record. Set to 0 if unknown.
        Returns:
        Last known server sync count for this record. Set to 0 if unknown.
      • withSyncCount

        public RecordPatch withSyncCount​(Long syncCount)
        Last known server sync count for this record. Set to 0 if unknown.
        Parameters:
        syncCount - Last known server sync count for this record. Set to 0 if unknown.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setDeviceLastModifiedDate

        public void setDeviceLastModifiedDate​(Date deviceLastModifiedDate)
        The last modified date of the client device.
        Parameters:
        deviceLastModifiedDate - The last modified date of the client device.
      • getDeviceLastModifiedDate

        public Date getDeviceLastModifiedDate()
        The last modified date of the client device.
        Returns:
        The last modified date of the client device.
      • withDeviceLastModifiedDate

        public RecordPatch withDeviceLastModifiedDate​(Date deviceLastModifiedDate)
        The last modified date of the client device.
        Parameters:
        deviceLastModifiedDate - The last modified date of the client device.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object