File tree 1 file changed +26
-0
lines changed
src/env/usecase/repository
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023. Smart Operating Block
3
+ *
4
+ * Use of this source code is governed by an MIT-style
5
+ * license that can be found in the LICENSE file or at
6
+ * https://opensource.org/licenses/MIT.
7
+ */
8
+
9
+ package usecase .repository ;
10
+
11
+ import entity .medicaltechnology .MedicalTechnology ;
12
+ import entity .medicaltechnology .MedicalTechnologyID ;
13
+
14
+ import java .util .Optional ;
15
+
16
+ /**
17
+ * Interface that models the repository to manage Medical Technologies.
18
+ */
19
+ public interface MedicalTechnologyRepository {
20
+ /**
21
+ * Find a medical technology by its id and gets its data.
22
+ * @param medicalTechnologyID the id used to find the medical technology
23
+ * @return the medical technology data
24
+ */
25
+ Optional <MedicalTechnology > findBy (MedicalTechnologyID medicalTechnologyID );
26
+ }
You can’t perform that action at this time.
0 commit comments