Class RecordPatch

    • Method Detail

      • op

        public final Operation op()
        An operation, either replace or remove.

        If the service returns an enum value that is not available in the current SDK version, op will return Operation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from opAsString().

        Returns:
        An operation, either replace or remove.
        See Also:
        Operation
      • opAsString

        public final String opAsString()
        An operation, either replace or remove.

        If the service returns an enum value that is not available in the current SDK version, op will return Operation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from opAsString().

        Returns:
        An operation, either replace or remove.
        See Also:
        Operation
      • key

        public final String key()
        The key associated with the record patch.
        Returns:
        The key associated with the record patch.
      • value

        public final String value()
        The value associated with the record patch.
        Returns:
        The value associated with the record patch.
      • syncCount

        public final Long syncCount()
        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.
      • deviceLastModifiedDate

        public final Instant deviceLastModifiedDate()
        The last modified date of the client device.
        Returns:
        The last modified date of the client device.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)