public class WeatherConditions
Provides methods for understanding weather conditions, like retrieving weather description, icon's link, etc.
Modifier and Type | Class and Description |
---|---|
static class |
WeatherConditions.Static |
Modifier and Type | Field and Description |
---|---|
static WeatherConditions.Static |
Static |
Constructor and Description |
---|
WeatherConditions()
Provides methods for understanding weather conditions,
like retrieving weather description, icon's link, etc.
|
Modifier and Type | Method and Description |
---|---|
static String |
getDescription(int conditionId)
Tells description of weather condition.
|
static int |
getIconCode(int conditionId)
Tells non-day/night icon code for a weather condition.
|
static String |
getIconDayCode(int iconCode)
Tells day icon code for a weather condition.
|
static String |
getIconDayLink(int iconCode)
Tells day icon's link for a weather condition.
|
static String |
getIconLink(String iconName)
Tells day/night icon code for a weather condition.
|
static String |
getIconLink(int iconCode,
boolean isDay)
Tells day/night icon link for a weather condition.
|
static String |
getIconNightCode(int iconCode)
Tells night icon code for a weather condition.
|
static String |
getIconNightLink(int iconCode)
Tells night icon's link for a weather condition.
|
public static WeatherConditions.Static Static
public WeatherConditions()
Provides methods for understanding weather conditions, like retrieving weather description, icon's link, etc.
public static String getDescription(int conditionId)
Tells description of weather condition.
conditionId
- Id of weather condition.public static int getIconCode(int conditionId)
Tells non-day/night icon code for a weather condition.
conditionId
- Id of weather condition.public static String getIconLink(String iconName)
Tells day/night icon code for a weather condition.
public static String getIconLink(int iconCode, boolean isDay)
Tells day/night icon link for a weather condition.
iconCode
- Non-day/night icon code for a weather condition.isDay
- Is it day or not, for which icon is needed?public static String getIconDayCode(int iconCode)
Tells day icon code for a weather condition.
iconCode
- Non-day/night icon code for a weather condition.public static String getIconNightCode(int iconCode)
Tells night icon code for a weather condition.
iconCode
- Non-day/night icon code for a weather condition.public static String getIconDayLink(int iconCode)
Tells day icon's link for a weather condition.
iconCode
- Non-day/night icon code for a weather condition.public static String getIconNightLink(int iconCode)
Tells night icon's link for a weather condition.
iconCode
- Non-day/night icon code for a weather condition.