Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Что нужно сделать #11

Open
AlexseyKh opened this issue Dec 25, 2015 · 0 comments
Open

Что нужно сделать #11

AlexseyKh opened this issue Dec 25, 2015 · 0 comments

Comments

@AlexseyKh
Copy link
Owner

  1. Заменить все ArrayList на LinkedHashSet +
  2. ID генерировать как System.currentTimeMillis() и сделать ID long
  3. Переименовать identificator в id +
  4. Реализовать hashCode() (id в расчет hascode не включать!)
  5. Методы получения всех отделов и сотрудников +
  6. Добавить отделу поле ID +
  7. Вместо индекса искать по id (Придется использовать цикл for в стиле for-each)
  8. Думаю можно убрать проверку уникальности сотрудников и отделов. За нас это будет LinkedHashSet
  9. Перенести всю логику в Controller +
  10. Метод получения всех сотрудников отдела по ID отдела +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant