Package my.uum.service.impl
Class WeatherServiceImpl
java.lang.Object
my.uum.service.impl.WeatherServiceImpl
- All Implemented Interfaces:
WeatherService
Implementation of the WeatherService interface for retrieving weather data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a list of available cities for weather information.Retrieves a map of cities by state.Retrieves a hierarchical structure of locations.getWeather(String city) Retrieves the weather information for a specified city.
-
Constructor Details
-
WeatherServiceImpl
public WeatherServiceImpl()
-
-
Method Details
-
getWeather
Retrieves the weather information for a specified city.- Specified by:
getWeatherin interfaceWeatherService- Parameters:
city- the name of the city- Returns:
- the weather information as a string
-
getAvailableCities
Retrieves a list of available cities for weather information.- Specified by:
getAvailableCitiesin interfaceWeatherService- Returns:
- a list of available cities
-
getCitiesByState
Retrieves a map of cities by state.- Specified by:
getCitiesByStatein interfaceWeatherService- Returns:
- a map of cities by state
-
getHierarchicalLocations
Retrieves a hierarchical structure of locations.- Specified by:
getHierarchicalLocationsin interfaceWeatherService- Returns:
- a LocationHierarchy object representing the hierarchical structure of locations
-