Docs Menu

Interface ObjectChangeSet

On this page

  • io.realm
  • Method Summary
  • Method Detail
  • getChangedFields
  • isDeleted
  • isFieldChanged

Information about the changes made to an object.

Tip
See also:
Modifier and Type
Method and Description
public String
public boolean
public boolean

Checks if a given field has been changed.

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.

public boolean isDeleted ()

Returns

true if the object has been deleted from the Realm.

public 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.

←  Class MutableRealmIntegerInterface OrderedCollectionChangeSet →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.