io.realm
This class describes the changes made to a set during the last update.:ref:SetChangeSet <io_realm_SetChangeSet> is passed to the SetChangeListener which is registered by RealmSet.addChangeListener(SetChangeListener) .
Constructors
Constructor and Description |
|---|
Method Summary
Modifier and Type | Method and Description |
|---|---|
public int | The number of entries that have been deleted |
public int | The number of entries that have been inserted. |
public boolean | isEmpty () Whether the change set is empty or not. |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalize
Constructor Detail
Method Detail
getNumberOfDeletions
public int getNumberOfDeletions () |
|---|
The number of entries that have been deleted Returns the number of deletions |
getNumberOfInsertions
public int getNumberOfInsertions () |
|---|
The number of entries that have been inserted. Returns the number of insertions. |
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. |