@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        Comment comment = (Comment) o;

        if (text != null ? !text.equals(comment.text) : comment.text != null) {
            return false;
        }
        if (created != null ? !created.equals(comment.created) : comment.created != null) {
            return false;
        }

        return user != null ? user.equals(comment.user) : comment.user == null;
    }