我正在尝试过滤 firebase 中的列表。我正在使用 equals 来获取内部的值,现在如果没有具有该值的数据,我想做一个多余的值。
for (DataSnapshot data : dataSnapshot.getChildren()) {
if (data.child("statusBookmark").getValue().equals("1")) {
final Profile profile2 = data.getValue(Profile.class);
profile.add(profile2);
}
}
元芳怎么了
炎炎设计
相关分类