是否可以存储ArrayList<Double>
进入 Realm 数据库,有没有人举个例子?
谢谢!
最佳答案
来自 Realm 文档:https://realm.io/docs/java/latest/#inverse-relationships
Realm model classes can contains lists of primitive data types. This must be modeled using RealmList, where T can be the following types: String, Integer, Boolean, Float, Double, Short, Long, Byte, byte[] and Date.
你必须使用 RealmList
在 Realm 中存储列表:
public RealmList<String> myProp = new RealmList<>();
关于android - 将 Arraylist<Double> 存储到 Realm 数据库中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53837470/