I have RealmResults that I receive from Realm
like
RealmResults<StepEntry> stepEntryResults = realm.where(StepEntry.class).findAll();
Now I want convert RealmResults<StepEntry>
to ArrayList<StepEntry>
I have try
ArrayList<StepEntry> stepEntryArray = new ArrayList<StepEntry>(stepEntryResults));
but the item in my ArrayList
is not my StepEntry
object, it is StepEntryRealmProxy
How can I convert it? Any help or suggestion would be great appreciated.
>`.