class DiscountData extends AbstractJsonDataSavable {

    public void setCollection(ArrayList<Discount> discounts) {
        this.discounts.clear();
        if (discounts != null)
            this.discounts.addAll(discounts);
    }

}