Package io.realm
Class SetChangeSet
- java.lang.Object
-
- io.realm.SetChangeSet
-
public class SetChangeSet extends Object
This class describes the changes made to a set during the last update.SetChangeSet
is passed to theSetChangeListener
which is registered byRealmSet.addChangeListener(SetChangeListener)
.
-
-
Constructor Summary
Constructors Constructor Description SetChangeSet(io.realm.internal.OsCollectionChangeSet osCollectionChangeSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumberOfDeletions()
The number of entries that have been deletedint
getNumberOfInsertions()
The number of entries that have been inserted.boolean
isEmpty()
Whether the change set is empty or not.
-
-
-
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.
-
-