【发布时间】:2017-04-07 03:09:23
【问题描述】:
我有从Realm 收到的 RealmResults
RealmResults<StepEntry> stepEntryResults = realm.where(StepEntry.class).findAll();
现在我想将RealmResults<StepEntry> 转换为ArrayList<StepEntry>
我试过了
ArrayList<StepEntry> stepEntryArray = new ArrayList<StepEntry>(stepEntryResults));
但我的ArrayList 中的项目不是我的StepEntry 对象,而是StepEntryRealmProxy
如何转换它? 任何帮助或建议将不胜感激。
【问题讨论】: