Package main.repository.user
Class CoordinatorRepository
java.lang.Object
main.utils.iocontrol.Savable<ModelObject>
- All Implemented Interfaces:
Iterable<Coordinator>
The CoordinatorRepository class is a repository that stores Coordinator objects
through file I/O operations.
It extends the Repository class, which provides basic CRUD operations for the repository.
-
Nested Class Summary
Nested classes/interfaces inherited from class main.repository.Repository
Repository.RepositoryRule<ModelObject>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor for creating a new CoordinatorRepository object. -
Method Summary
Modifier and TypeMethodDescriptionGets the file path of the repository.static CoordinatorRepository
Gets a new instance of CoordinatorRepository.void
Sets the list of mappable objects in the repository.Methods inherited from class main.repository.Repository
add, clear, contains, findByRules, getAll, getByID, getList, isEmpty, iterator, load, remove, save, size, update, updateAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
FILE_PATH
The path of the repository file.- See Also:
-
-
Constructor Details
-
CoordinatorRepository
CoordinatorRepository()Constructor for creating a new CoordinatorRepository object.
-
-
Method Details
-
getInstance
Gets a new instance of CoordinatorRepository.- Returns:
- a new instance of CoordinatorRepository
-
getFilePath
Gets the file path of the repository.- Specified by:
getFilePath
in classRepository<Coordinator>
- Returns:
- the file path of the repository
-
setAll
Sets the list of mappable objects in the repository.- Specified by:
setAll
in classSavable<Coordinator>
- Parameters:
listOfMappableObjects
- the list of mappable objects to set
-