Package main.repository.project
Class ProjectRepository
java.lang.Object
main.utils.iocontrol.Savable<ModelObject>
The ProjectRepository class is a repository that manages the persistence and retrieval of Project objects
 through file I/O operations.
 It extends the Repository class, which provides basic CRUD operations for the repository.
- 
Nested Class SummaryNested classes/interfaces inherited from class main.repository.RepositoryRepository.RepositoryRule<ModelObject>
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new ProjectRepository object and loads the data from the project data file.
- 
Method SummaryModifier and TypeMethodDescriptionGets the file path of the project data file.static ProjectRepositoryGets a new ProjectRepository object.voidSets the list of mappable objects by converting a list of maps to a list of Project objects.Methods inherited from class main.repository.Repositoryadd, clear, contains, findByRules, getAll, getByID, getList, isEmpty, iterator, load, remove, save, size, update, updateAllMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
FILE_PATHThe file path of the project data file.- See Also:
 
 
- 
- 
Constructor Details- 
ProjectRepositoryProjectRepository()Constructs a new ProjectRepository object and loads the data from the project data file.
 
- 
- 
Method Details- 
getInstanceGets a new ProjectRepository object.- Returns:
- a new ProjectRepository object
 
- 
getFilePathGets the file path of the project data file.- Specified by:
- getFilePathin class- Repository<Project>
- Returns:
- the file path of the project data file
 
- 
setAllSets the list of mappable objects by converting a list of maps to a list of Project objects.
 
-