@@ -0,0 +1,1542 @@
+package ru.revdaalex.lsp.chapterII.rcontroll;%0A%0Aimport ru.revdaalex.lsp.chapterI.control.ControllQuality;%0Aimport ru.revdaalex.lsp.chapterI.food.Food;%0Aimport ru.revdaalex.lsp.chapterI.interfaces.Storage;%0Aimport ru.revdaalex.lsp.chapterII.food.ReproductFood;%0Aimport ru.revdaalex.lsp.chapterII.interfaces.Rstorage;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A *%0A * Created by revdaalex on 24.08.2016.%0A */%0Apublic class RCotrollQuality  %7B%0A%0A    /**%0A     * ArrayList Storage.%0A     */%0A    private ArrayList%3CStorage%3E storages = new ArrayList%3C%3E();%0A%0A    /**%0A     * ArrayList Rstorage.%0A     */%0A    private ArrayList%3CRstorage%3E rstorages = new ArrayList%3C%3E();%0A%0A    /**%0A     * ControllQuality.%0A     */%0A    ControllQuality controllQuality = new ControllQuality(storages);%0A%0A%0A    /**%0A     * add storage method.%0A     * @param storage%0A     */%0A    public void add(Storage storage)%7B%0A        this.storages.add(storage);%0A    %7D%0A%0A    /**%0A     * add rstorage method.%0A     * @param rstorage%0A     */%0A    public void add(Rstorage rstorage)%7B%0A        this.rstorages.add(rstorage);%0A    %7D%0A%0A    /**%0A     * sort method.%0A     * @param food%0A     */%0A    public void sort(Food food) %7B%0A        controllQuality.sort(food);%0A    %7D%0A%0A    /**%0A     * rSort method.%0A     * @param reproductFood%0A     */%0A    public void rSort(ReproductFood reproductFood)%7B%0A        for (Rstorage rstorage : this.rstorages)%7B%0A            if (rstorage.sortQuality(reproductFood))%7B%0A                rstorage.add(reproductFood);%0A                break;%0A            %7D%0A        %7D%0A        controllQuality.sort(reproductFood);%0A    %7D%0A%7D%0A

add RCotrollQuality.java