public class CollectionUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DICTIONARY_TYPE |
static String |
LIST_TYPE |
static String |
SET_TYPE |
| Constructor and Description |
|---|
CollectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkForAddRemoveListener(io.realm.BaseRealm baseRealm,
Object listener,
boolean checkListener)
Checks whether it is possible to add or remove a provided listener.
|
static <E extends RealmModel> |
copyToRealm(io.realm.BaseRealm baseRealm,
E object)
Called by both list and dictionary operators to copy a RealmModel to Realm in case it has
been deemed necessary.
|
public static final String LIST_TYPE
public static final String DICTIONARY_TYPE
public static final String SET_TYPE
public static <E extends RealmModel> E copyToRealm(io.realm.BaseRealm baseRealm, E object)
E - The RealmModel type.baseRealm - The Realm instance to copy the object to.object - The object to copy.public static void checkForAddRemoveListener(io.realm.BaseRealm baseRealm,
Object listener,
boolean checkListener)
listener - The listener to be checked.checkListener - whether the check should be performed.