Realmlist <string>无法将其解压缩

时间:2017-11-15 12:24:52

标签: string realm realm-java

我正在使用领域4.1.1

当尝试在RealmObject中使用Realmlist时,我们无法将其检索回来

RealmObject数据成员如下:

@PrimaryKey private String product_id; private String product_name; private String specifications_sheet; private String brochure; private String product_warranty; private String product_description; private String model; private String sku; private String upc; private String quantity; private String image; private String manufacturer_id; private String manufacturer; private String retail_price; private String gold_price; private String trade_price; private String price_currency; private String trade_only; private String products_type; private String category_id; private String category_name; private String subcategory_id; private String subcategory_name; private RealmList<String> images = new RealmList<>();

当我尝试productDatas.getImages().size()时,大小始终为零

请告诉我哪里出错了

0 个答案:

没有答案