Package io.realm

Interface ObjectChangeSet


  • public interface ObjectChangeSet
    Information about the changes made to an object.
    See Also:
    .
    • Method Detail

      • isDeleted

        boolean isDeleted()
        Returns:
        true if the object has been deleted from the Realm.
      • getChangedFields

        String[] getChangedFields()
        Returns:
        the names of changed fields if the object still exists and there are field changes. Returns an empty String[] if the object has been deleted.
      • isFieldChanged

        boolean isFieldChanged​(String fieldName)
        Checks if a given field has been changed.
        Parameters:
        fieldName - to be checked if its value has been changed.
        Returns:
        true if the field has been changed. It returns false if the object is deleted, the field cannot be found or the field hasn't been changed.