Class WeatherWarning

java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.WeatherWarning
All Implemented Interfaces:
Comparable<WeatherWarning>

public class WeatherWarning extends Object implements Comparable<WeatherWarning>
  • Field Details

  • Constructor Details

    • WeatherWarning

      public WeatherWarning()
  • Method Details

    • 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(String referenceID)
    • getSeverity

      public int getSeverity()
    • getUnderlineString

      public static String getUnderlineString(String source, String underlineChar)
    • getPlainTextWarning

      public String getPlainTextWarning(Context context, boolean includeCredentials)
    • compareTo

      public int compareTo(WeatherWarning w)
      Specified by:
      compareTo in interface Comparable<WeatherWarning>
    • getApplicableExpires

      public long getApplicableExpires()