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

        Goods goods = (Goods) o;

        if (isExemption != goods.isExemption) return false;
        if (isImport != goods.isImport) return false;
        if (Double.compare(goods.price, price) != 0) return false;
        if (name != null ? !name.equals(goods.name) : goods.name != null) return false;
        if (amount != goods.amount) return false;

        return true;
    }