如果我有一个原始值数组,我如何在 RealmResults 的 .where() 上运行 .not().contains() ?
代码应该是这样的:
results.where().not().contains("id", new int[] {1, 2, 3})
或者我是否必须遍历所有这些结果并单独提取它们?
最佳答案
您可以尝试 beginGroup 然后不 in 查询数组
realm1.where(UserModel.class)..beginGroup().not().
in("key",Your Array)).endGroup().findAll();
关于java - Java 中不包含的 Realm ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37846190/