Class WeatherWarning
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherWarning
-
- All Implemented Interfaces:
java.lang.Comparable<WeatherWarning>
public class WeatherWarning extends java.lang.Object implements java.lang.Comparable<WeatherWarning>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WeatherWarning.Severity
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID_SILENT_UPDATE
static java.lang.String
ID_UPDATE
-
Constructor Summary
Constructors Constructor Description WeatherWarning()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(WeatherWarning w)
long
getApplicableExpires()
java.lang.String
getPlainTextWarning(Context context, boolean includeCredentials)
int
getSeverity()
static java.lang.String
getUnderlineString(java.lang.String source, java.lang.String underlineChar)
int
getWarningColor()
boolean
hasReferenceID(java.lang.String referenceID)
void
initPolygons(Context context)
boolean
isInPolygonGeo(float testy, float testx)
boolean
isInPolygonGeo(Weather.WeatherLocation weatherLocation)
boolean
isSilentUpdate()
boolean
isUpdate()
Checks if this warning is an update of a previously issued warning.
-
-
-
Field Detail
-
ID_UPDATE
public static final java.lang.String ID_UPDATE
- See Also:
- Constant Field Values
-
ID_SILENT_UPDATE
public static final java.lang.String ID_SILENT_UPDATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
initPolygons
public void initPolygons(Context context)
-
isInPolygonGeo
public boolean isInPolygonGeo(float testy, float testx)
-
isInPolygonGeo
public boolean isInPolygonGeo(Weather.WeatherLocation weatherLocation)
-
getWarningColor
public int getWarningColor()
-
isUpdate
public boolean isUpdate()
Checks if this warning is an update of a previously issued warning.- Returns:
- true if the warning is an update
-
isSilentUpdate
public boolean isSilentUpdate()
-
hasReferenceID
public boolean hasReferenceID(java.lang.String referenceID)
-
getSeverity
public int getSeverity()
-
getUnderlineString
public static java.lang.String getUnderlineString(java.lang.String source, java.lang.String underlineChar)
-
getPlainTextWarning
public java.lang.String getPlainTextWarning(Context context, boolean includeCredentials)
-
compareTo
public int compareTo(WeatherWarning w)
- Specified by:
compareTo
in interfacejava.lang.Comparable<WeatherWarning>
-
getApplicableExpires
public long getApplicableExpires()
-
-