|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oopitis.weather.owm.OwmSummary
public class OwmSummary
This class corresponds to the weather array described by Open
Weather Map.
| Nested Class Summary | |
|---|---|
static class |
OwmSummary.Item
A summary item. |
| Constructor Summary | |
|---|---|
OwmSummary()
Constructs a summary with no items. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String id,
java.lang.String desc,
java.lang.String icon)
Adds a summary item. |
java.util.List<OwmSummary.Item> |
items()
Returns the list of items in this summary. |
java.lang.String |
toString()
Returns a string representation of this summary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OwmSummary()
| Method Detail |
|---|
public void add(java.lang.String id,
java.lang.String desc,
java.lang.String icon)
id - the weather condition codedesc - the short descriptionicon - the icon filename without extension
java.lang.NullPointerException - if the weather condition code is nullpublic java.util.List<OwmSummary.Item> items()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||