Skip to content

Commit

Permalink
chore: add medical technology repository
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed Apr 18, 2023
1 parent fdf0774 commit 948261b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/env/usecase/repository/MedicalTechnologyRepository.java
Original file line number Diff line number Diff line change
@@ -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<MedicalTechnology> findBy(MedicalTechnologyID medicalTechnologyID);
}

0 comments on commit 948261b

Please sign in to comment.