From 948261bf0383a9f20f889604dd4d071b9888fd03 Mon Sep 17 00:00:00 2001 From: Andrea Giulianelli Date: Tue, 4 Apr 2023 14:14:08 +0200 Subject: [PATCH] chore: add medical technology repository --- .../MedicalTechnologyRepository.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/env/usecase/repository/MedicalTechnologyRepository.java diff --git a/src/env/usecase/repository/MedicalTechnologyRepository.java b/src/env/usecase/repository/MedicalTechnologyRepository.java new file mode 100644 index 0000000..a097454 --- /dev/null +++ b/src/env/usecase/repository/MedicalTechnologyRepository.java @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2023. Smart Operating Block + * + * Use of this source code is governed by an MIT-style + * license that can be found in the LICENSE file or at + * https://opensource.org/licenses/MIT. + */ + +package usecase.repository; + +import entity.medicaltechnology.MedicalTechnology; +import entity.medicaltechnology.MedicalTechnologyID; + +import java.util.Optional; + +/** + * Interface that models the repository to manage Medical Technologies. + */ +public interface MedicalTechnologyRepository { + /** + * Find a medical technology by its id and gets its data. + * @param medicalTechnologyID the id used to find the medical technology + * @return the medical technology data + */ + Optional findBy(MedicalTechnologyID medicalTechnologyID); +}