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

        Post post = (Post) o;

        if (date != null ? !date.equals(post.date) : post.date != null) return false;
        if (text != null ? !text.equals(post.text) : post.text != null) return false;
        if (user != null ? !user.equals(post.user) : post.user != null) return false;

        return true;
    }