@@ -0,0 +1,1404 @@
+package ru.revdaalex.lsp.chapterII.storage;%0A%0Aimport ru.revdaalex.lsp.chapterI.food.Food;%0Aimport ru.revdaalex.lsp.chapterI.interfaces.Storage;%0Aimport ru.revdaalex.lsp.chapterII.food.ReproductFood;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A * ColdWarehouse class.%0A * Created by revdaalex on 10.08.2016.%0A */%0Apublic class ColdWarehouse implements Storage %7B%0A    /**%0A     * ArrayList coldWarehouse.%0A     */%0A    private final ArrayList%3CFood%3E coldWarehouse = new ArrayList%3CFood%3E();%0A%0A    /**%0A     * New soet method with reproduct flag.%0A     * @param reproductFood%0A     * @return%0A     */%0A    public boolean rSortQuality(ReproductFood reproductFood) %7B%0A        if (reproductFood.getExpiryDateInPercents() %3E= 100)%7B%0A            if (reproductFood.canReproduct())%7B%0A                return true;%0A            %7D%0A        %7D%0A        return false;%0A    %7D%0A%0A%0A    /**%0A     * Implements interface method add in ColdWarehouse.%0A     * @param food%0A     */%0A    public void add(Food food) %7B%0A        this.coldWarehouse.add(food);%0A    %7D%0A%0A    /**%0A     * Implements interface method sortQuality in ColdWarehouse.%0A     * @param food%0A     * @return%0A     */%0A    public boolean sortQuality(Food food) %7B%0A        if (rSortQuality((ReproductFood) food))%7B%0A            return true;%0A        %7D%0A        return false;%0A    %7D%0A%0A    /**%0A     * Get method.%0A     * @return arrayList.%0A     */%0A    public ArrayList%3CFood%3E getFood() %7B%0A        return coldWarehouse;%0A    %7D%0A%7D%0A

add ColdWarehouse.java