Package io.realm

Class SetChangeSet

    • Constructor Detail

      • SetChangeSet

        public SetChangeSet​(io.realm.internal.OsCollectionChangeSet osCollectionChangeSet)
    • Method Detail

      • getNumberOfInsertions

        public int getNumberOfInsertions()
        The number of entries that have been inserted.
        Returns:
        the number of insertions.
      • getNumberOfDeletions

        public int getNumberOfDeletions()
        The number of entries that have been deleted
        Returns:
        the number of deletions
      • isEmpty

        public boolean isEmpty()
        Whether the change set is empty or not. This is needed to detect whether a notification has been triggered right after subscription.
        Returns:
        whether the change set contains changes.