Interface MapChangeSet
io.realm
This interface describes the changes made to a map during the last update.:ref:MapChangeSet <io_realm_MapChangeSet>
is passed to the MapChangeListener which is registered by RealmMap.addChangeListener(MapChangeListener) .
Method Summary
Modifier and Type | Method and Description |
---|---|
public T | getChanges () Array containing the keys that have been modified in the previous version of the map. |
public T | getDeletions () The number of entries that have been deleted in the previous version of the map. |
public T | Array containing the keys that have been inserted in the previous version of the map. |
public boolean | isEmpty () Whether the change set is empty or not. |
Method Detail
getChanges
public T getChanges () |
---|
Array containing the keys that have been modified in the previous version of the map. Returns array with the keys that have been modified. |
getDeletions
public T getDeletions () |
---|
The number of entries that have been deleted in the previous version of the map. Returns array with the keys that have been deleted. |
getInsertions
public T getInsertions () |
---|
Array containing the keys that have been inserted in the previous version of the map. Returns array with the keys that have been inserted. |
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. |