Class CoordinatorRepository

java.lang.Object
main.utils.iocontrol.Savable<ModelObject>
main.repository.Repository<Coordinator>
main.repository.user.CoordinatorRepository
All Implemented Interfaces:
Iterable<Coordinator>

public class CoordinatorRepository extends Repository<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.
  • Field Details

  • Constructor Details

    • CoordinatorRepository

      CoordinatorRepository()
      Constructor for creating a new CoordinatorRepository object.
  • Method Details

    • getInstance

      public static CoordinatorRepository getInstance()
      Gets a new instance of CoordinatorRepository.
      Returns:
      a new instance of CoordinatorRepository
    • getFilePath

      public String getFilePath()
      Gets the file path of the repository.
      Specified by:
      getFilePath in class Repository<Coordinator>
      Returns:
      the file path of the repository
    • setAll

      public void setAll(List<Map<String,String>> listOfMappableObjects)
      Sets the list of mappable objects in the repository.
      Specified by:
      setAll in class Savable<Coordinator>
      Parameters:
      listOfMappableObjects - the list of mappable objects to set