refactor(model): rename currentCollection to mainCollection

This commit is contained in:
2026-08-29 18:38:45 +04:00
parent b932636409
commit 266aaa4c77
@@ -6,22 +6,22 @@ import ru.project.student.Student;
public class AppState { public class AppState {
private MyList<Student> currentCollection; private MyList<Student> mainCollection;
private MyList<Student> customDataCollection; private MyList<Student> customDataCollection;
private String currentFilePath; private String currentFilePath;
public AppState() { public AppState() {
this.currentCollection = new MyLinkedList<>(); this.mainCollection = new MyLinkedList<>();
this.customDataCollection = new MyLinkedList<>(); this.customDataCollection = new MyLinkedList<>();
this.currentFilePath = null; this.currentFilePath = null;
} }
public MyList<Student> getCurrentCollection() { public MyList<Student> getMainCollection() {
return currentCollection; return mainCollection;
} }
public void setCurrentCollection(MyList<Student> currentCollection) { public void setMainCollection(MyList<Student> currentCollection) {
this.currentCollection = currentCollection; this.mainCollection = currentCollection;
} }
public MyList<Student> getCustomDataCollection() { public MyList<Student> getCustomDataCollection() {