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

        Candy candy = (Candy) o;

        if (carbohydrate != candy.carbohydrate) return false;
        if (fat != candy.fat) return false;
        if (kiloCalories != candy.kiloCalories) return false;
        if (protein != candy.protein) return false;
        if (sugarContent != candy.sugarContent) return false;
        if (weight != candy.weight) return false;

        return true;
    }