Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Class CollectionUtils

On this page

  • io.realm
  • Constructors
  • Field Summary
  • Method Summary
  • Inherited Methods
  • Field Detail
  • DICTIONARY_TYPE
  • LIST_TYPE
  • SET_TYPE
  • Constructor Detail
  • Method Detail
  • checkForAddRemoveListener
  • copyToRealm
java.lang.Object
io.realm.CollectionUtils
Constructor and Description
Modifier and Type
Field and Description
public static final String
public static final String
public static final String
Modifier and Type
Method and Description
public static void
BaseRealm baseRealm,
Object listener,
boolean checkListener
)

Checks whether it is possible to add or remove a provided listener.

public static E
BaseRealm baseRealm,
E object
)

Called by both list and dictionary operators to copy a RealmModel to Realm in case it has been deemed necessary.

  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public CollectionUtils ()

public static void checkForAddRemoveListener (
BaseRealm baseRealm,
Object listener,
boolean checkListener
)

Checks whether it is possible to add or remove a provided listener.

Parameters

  • listener - The listener to be checked.

  • checkListener - whether the check should be performed.

public static E copyToRealm <E >(
BaseRealm baseRealm,
E object
)

Called by both list and dictionary operators to copy a RealmModel to Realm in case it has been deemed necessary.

Type Parameters

  • E - The RealmModel type.

Parameters

  • baseRealm - The Realm instance to copy the object to.

  • object - The object to copy.

Returns

the copied object

Back

Case