Class Forecast

java.lang.Object
com.github.prominence.openweathermap.api.model.forecast.Forecast

public class Forecast extends Object
Represents information about forecast for different timestamps.
  • Constructor Details

    • Forecast

      public Forecast()
  • Method Details

    • getLocation

      public Location getLocation()
      Returns location information.
      Returns:
      location
    • setLocation

      public void setLocation(Location location)
      Sets forecast location.
      Parameters:
      location - forecast location
    • getWeatherForecasts

      public List<WeatherForecast> getWeatherForecasts()
      Returns list of weather forecasts for different timestamps.
      Returns:
      list of forecast-per-timestamp information.
    • setWeatherForecasts

      public void setWeatherForecasts(List<WeatherForecast> weatherForecasts)
      Sets list of weather forecasts for different timestamps.
      Parameters:
      weatherForecasts - list of forecast information
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object