Serializable
public class Forecast extends Object implements Serializable
Constructor | Description |
---|---|
Forecast() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
List<Alert> |
getAlerts() |
|
Currently |
getCurrently() |
|
Daily |
getDaily() |
|
Flags |
getFlags() |
|
Hourly |
getHourly() |
|
Latitude |
getLatitude() |
|
Longitude |
getLongitude() |
|
Minutely |
getMinutely() |
|
String |
getTimezone() |
|
int |
hashCode() |
|
void |
setAlerts(List<Alert> alerts) |
|
void |
setCurrently(Currently currently) |
|
void |
setDaily(Daily daily) |
|
void |
setFlags(Flags flags) |
|
void |
setHourly(Hourly hourly) |
|
void |
setLatitude(Latitude latitude) |
|
void |
setLongitude(Longitude longitude) |
|
void |
setMinutely(Minutely minutely) |
|
void |
setTimezone(String timezone) |
public void setLongitude(Longitude longitude)
longitude
- The requested longitude.public Longitude getLongitude()
public void setLatitude(Latitude latitude)
latitude
- The requested latitude.public Latitude getLatitude()
public List<Alert> getAlerts()
public void setAlerts(List<Alert> alerts)
alerts
- An alerts List, which, if present, contains any severe weather alerts pertinent to the requested location.public void setFlags(Flags flags)
flags
- Optional flags object containing miscellaneous metadata about the request.public Flags getFlags()
public void setTimezone(String timezone)
timezone
- The IANA timezone name for the requested location. This is used for text summaries and for determining when hourly and daily data block objects begin. (e.g.
America/New_York).public String getTimezone()
public void setCurrently(Currently currently)
currently
- A data point containing the current weather conditions at the requested location.public Currently getCurrently()
public Daily getDaily()
public void setDaily(Daily daily)
daily
- A data block containing the weather conditions day-by-day for the next week.public Hourly getHourly()
public void setHourly(Hourly hourly)
hourly
- A data block containing the weather conditions hour-by-hour for the next two days.public Minutely getMinutely()
public void setMinutely(Minutely minutely)
minutely
- A data block containing the weather conditions minute-by-minute for the next hour.Copyright © 2018. All rights reserved.