Ezio123 Ezio123 - 1 year ago 162
Android Question

How to convert RealmResults object to RealmList?

I have a

RealmResults <Student>
object. I want to convert it to
RealmList <Student>
object. any suggestions?

Answer Source
RealmList <Student> results = new RealmList<Student>();

for(Student student : realResultsList){

However, this is not the most elegant way to do the conversion.