Difference between RealmList and RealmResults in Realm.io of Android

3

What are the differences in returning the data of a query Realm.io that are in the form of RealmList or RealmResults ?

    
asked by Webserveis 20.10.2016 в 12:35
source

1 answer

3

I leave you the documentation of RealmResults and RealmList where you can see the differences of each one and I'll give you a brief summary of the basics you should know:

  • ReamList is used to make one-to-many relationships of Realm objects and basically it is a ArrayList that can be used within a RealmObject thing that RealmResults can not.

  • RealmResults will always be the result of a query and only has references of the objects returned by that query.

answered by 20.10.2016 / 14:48
source