@Override
    public boolean equals(Object o) {

        if (!(o instanceof Category)) {
            return false;
        }

        Category c = (Category) o;

        if (this.getId() != c.getId()) {
            return false;
        }

        if (!this.getHeadLine().equals(c.getHeadLine())) {
            return false;
        }

//        if (!this.getThreads().equals(c.getThreads())) {
//            return false;
//        }

        if (this.getColorCode() != c.getColorCode()) {
            return false;
        }

        if (!this.getImageName().equals(c.getImageName())) {
            return false;
        }

        return true;
    }