Interface that contains the declaration of our methods

This commit is contained in:
BGbaderguet 2020-11-09 19:57:43 +01:00
parent 57285a2cf8
commit 641bb55b72

View File

@ -0,0 +1,32 @@
package fr.romanet.vj.apps.myweather;
import java.util.List;
import fr.romanet.vj.apps.myweather.bo.City;
//Interface used in order to implement correctly the repository pattern
public interface ICityService
{
/**
* Get all the city
* @return {@link List}
*/
List<City> getCity();
/**
* Deletes a city
* @param cityToDelete
*/
void deleteCity(City cityToDelete);
/**
* Add a city
* @param cityToAdd
*/
void addCity(City cityToAdd);
/**
* Get all cities sorted by name
* @return {@link List}
*/
List<City> sortCityByName();
}