package ru.job4j.pro.generic;

/**
 * This class describes store of users.
 *
 * @author Kucykh Vasily (mailto:basil135@mail.ru)
 * @version $Id$
 * @since 23.05.2017
 */
public class UserStore implements IStore<User> {

    /**
     * parameter sa is a simple array collection.
     */
    private SimpleArray<User> sa = new SimpleArray<>();

    /**
     * method add user to collection.
     *
     * @param user is input user
     * @return true
     */
    @Override
    public boolean add(User user) {
        return sa.add(user);
    }

    /**
     * method update srcUser by dstUser.
     *
     * @param srcUser is user we need to update
     * @param dstUser is final user
     * @return true if srcUser was successfully updated
     */
    @Override
    public boolean update(User srcUser, User dstUser) {

        for (int count = 0; count < sa.size(); count++) {

            if (sa.get(count).getId().equals(srcUser.getId())) {
                sa.update(count, dstUser);
                return true;
            }

        }

        return false;

    }

    /**
     * method remove user from collection.
     *
     * @param user is user we need to remove
     * @return true if user was successfully removed
     */
    @Override
    public boolean remove(User user) {
        return sa.remove(user);
    }

    /**
     * method return Object array of users.
     *
     * @return array
     */
    public Object[] toArray() {
        return sa.toArray();
    }

    /**
     * method return User array of users.
     *
     * @param input is input array
     * @return array
     */
    public User[] toArray(User[] input) {
        return sa.toArray(input);
    }

}

@@ -191,1499 +191,36 @@
 ore 
-implements IStore%3CUser%3E %7B%0A%0A    /**%0A     * parameter sa is a simple array collection.%0A     */%0A    private SimpleArray%3CUser%3E sa = new SimpleArray%3C%3E();%0A%0A    /**%0A     * method add user to collection.%0A     *%0A     * @param user is input user%0A     * @return true%0A     */%0A    @Override%0A    public boolean add(User user) %7B%0A        return sa.add(user);%0A    %7D%0A%0A    /**%0A     * method update srcUser by dstUser.%0A     *%0A     * @param srcUser is user we need to update%0A     * @param dstUser is final user%0A     * @return true if srcUser was successfully updated%0A     */%0A    @Override%0A    public boolean update(User srcUser, User dstUser) %7B%0A%0A        for (int count = 0; count %3C sa.size(); count++) %7B%0A%0A            if (sa.get(count).getId().equals(srcUser.getId())) %7B%0A                sa.update(count, dstUser);%0A                return true;%0A            %7D%0A%0A        %7D%0A%0A        return false;%0A%0A    %7D%0A%0A    /**%0A     * method remove user from collection.%0A     *%0A     * @param user is user we need to remove%0A     * @return true if user was successfully removed%0A     */%0A    @Override%0A    public boolean remove(User user) %7B%0A        return sa.remove(user);%0A    %7D%0A%0A    /**%0A     * method return Object array of users.%0A     *%0A     * @return array%0A     */%0A    public Object%5B%5D toArray() %7B%0A        return sa.toArray();%0A    %7D%0A%0A    /**%0A     * method return User array of users.%0A     *%0A     * @param input is input array%0A     * @return array%0A     */%0A    public User%5B%5D toArray(User%5B%5D input) %7B%0A        return sa.toArray(input);%0A    %7D%0A
+extends AbstractStore%3CUser%3E %7B
 %0A%7D%0A

Refactor UserStore.java - clear all class (deleted all methods and fields)