public class Forecast extends Object
| Constructor and Description |
|---|
Forecast() |
Forecast(WeekDay day,
Date date,
int low,
int high,
String text,
int code) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the condition code for this forecast.
|
Date |
getDate()
Returns the date to which this forecast applies.
|
WeekDay |
getDay()
Returns the day of the week to which this forecast applies.
|
int |
getHigh()
Returns the forecasted high temperature for this day, in the units specified by the unit field in the
Channel class. |
int |
getLow()
Returns the forecasted low temperature for this day, in the units specified by the unit field in the
Channel class. |
String |
getText()
Returns a textual description of conditions, for example, "Partly Cloudy"
|
String |
toString() |
public WeekDay getDay()
public Date getDate()
public int getLow()
Channel class.public int getHigh()
Channel class.public String getText()
public int getCode()
Copyright © 2016. All rights reserved.