Interface that contains the declaration of our methods
This commit is contained in:
parent
57285a2cf8
commit
641bb55b72
@ -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();
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user