验证扩展RealmObject的类的所有对象都是空的

时间:2016-09-15 12:38:02

标签: java android realm

我的Book.class扩展了realmobject。

public class Book extends RealmObject {
    private String title;
    private String author;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}

如何判断这些物品是否为空,有人帮助我

0 个答案:

没有答案