Package io.realm

Interface OrderedCollectionChangeSet

    • Method Detail

      • getDeletions

        int[] getDeletions()
        The deleted indices in the previous version of the collection.
        Returns:
        the indices array. A zero-sized array will be returned if no objects were deleted.
      • getInsertions

        int[] getInsertions()
        The inserted indices in the new version of the collection.
        Returns:
        the indices array. A zero-sized array will be returned if no objects were inserted.
      • getChanges

        int[] getChanges()
        The modified indices in the new version of the collection.

        For RealmResults, this means that one or more of the properties of the object at the given index were modified (or an object linked to by that object was modified).

        Returns:
        the indices array. A zero-sized array will be returned if objects were modified.
      • getError

        @Nullable
        Throwable getError()
        Returns any error that happened. If an error has happened, the state of the collection and other changeset information is undefined. It is possible for a collection to go into an error state after being created and starting to send updates.
        Returns:
        the error that happened.