Skip to content

Добавил поиск#19

Open
y0shir wants to merge 13 commits intomainfrom
dev_sorting
Open

Добавил поиск#19
y0shir wants to merge 13 commits intomainfrom
dev_sorting

Conversation

@y0shir
Copy link
Collaborator

@y0shir y0shir commented Feb 13, 2025

No description provided.

menu.addAction("3", "Вывод массива объектов на экран", print_array_menu);
menu.addAction("4", "Сортировка массива", null);//TODO
menu.addAction("5", "Выход", null);
menu.addAction("5", "Поиск Объекта по значению", sort_menu);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сортировка обьявлена в поиске

//TODO throw
}
if (list.size()<=0){
throw new RuntimeException("No Objects to sort!");
Copy link
Collaborator

@evgenushka evgenushka Feb 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Убрать Эксепшн, оставить только SOUT

public boolean reopen_after_submenu_closes=false;

public void removeAction(String key){
public Menu removeAction(String key){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше оставить void idea ругается на превышение полномочий в части использования памяти

@@ -0,0 +1,5 @@
class AuthorOfBook extends ValueGetter<Book, java.lang.String>{
public java.lang.String get(Book book){
return book.getAuthor();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ваня, у нас в самих классах Book, Car и т.п. есть get и set методы, ты зачем-то создаешь им дублеры
И ладно бы дублёры - на каждое поле отдельный класс. Это антипаттерн, имхо..

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, там есть сеттеры и геттеры, но их не досатать из дженериков

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

Successfully merging this pull request may close these issues.

4 participants