Package io.realm
Interface MapChangeSet<T>
-
public interface MapChangeSet<T>This interface describes the changes made to a map during the last update.MapChangeSetis passed to theMapChangeListenerwhich is registered byRealmMap.addChangeListener(MapChangeListener).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T[]getChanges()Array containing the keys that have been modified in the previous version of the map.T[]getDeletions()The number of entries that have been deleted in the previous version of the map.T[]getInsertions()Array containing the keys that have been inserted in the previous version of the map.booleanisEmpty()Whether the change set is empty or not.
-
-
-
Method Detail
-
getDeletions
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
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.
-
getChanges
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.
-
isEmpty
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.
-
-