Class Forecast
java.lang.Object
com.github.prominence.openweathermap.api.model.forecast.Forecast
Represents information about forecast for different timestamps.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns location information.Returns list of weather forecasts for different timestamps.inthashCode()voidsetLocation(Location location) Sets forecast location.voidsetWeatherForecasts(List<WeatherForecast> weatherForecasts) Sets list of weather forecasts for different timestamps.toString()
-
Constructor Details
-
Forecast
public Forecast()
-
-
Method Details
-
getLocation
-
setLocation
Sets forecast location.- Parameters:
location- forecast location
-
getWeatherForecasts
Returns list of weather forecasts for different timestamps.- Returns:
- list of forecast-per-timestamp information.
-
setWeatherForecasts
Sets list of weather forecasts for different timestamps.- Parameters:
weatherForecasts- list of forecast information
-
equals
-
hashCode
-
toString
-