|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.feed.module.yahooweather.types.Condition
public class Condition
The current weather conditions. Attributes:
Constructor Summary | |
---|---|
Condition()
Simple constructor |
|
Condition(java.lang.String text,
ConditionCode code,
int temperature,
java.util.Date date)
Constructs a new Condition. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
ConditionCode |
getCode()
Condition code |
java.util.Date |
getDate()
Date recorded |
int |
getTemperature()
Current Temperature |
java.lang.String |
getText()
Description of condition |
int |
hashCode()
|
void |
setCode(ConditionCode code)
Condition code |
void |
setDate(java.util.Date date)
Date recorded |
void |
setTemperature(int temperature)
Current Temperature |
void |
setText(java.lang.String text)
Description of condition |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Condition()
public Condition(java.lang.String text, ConditionCode code, int temperature, java.util.Date date)
text
- a textual description of conditions, for example, "Partly
Cloudy"code
- the condition code for this forecast.temperature
- the current temperaturedate
- the current date and timeMethod Detail |
---|
public java.lang.String getText()
public void setText(java.lang.String text)
text
- a textual description of conditions, for example, "Partly
Cloudy"public ConditionCode getCode()
public void setCode(ConditionCode code)
code
- Condition codepublic int getTemperature()
Units
public void setTemperature(int temperature)
temperature
- the current temperatureUnits
public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- the current date and timepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |