Class Areas
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.Areas
-
public class Areas extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Areas.Area
static class
Areas.AreaDatabaseCreator
static class
Areas.AreaDatabaseProgress
static class
Areas.AreaNameReader
static class
Areas.AreaReader
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
doesAreaDatabaseExist(Context context)
static java.util.ArrayList<java.lang.String>
getAllAreaNames(Context context)
static java.util.ArrayList<java.lang.String>
getAllWarncellIDs(Context context)
static Areas.Area
getArea(Context context, java.lang.String warincellID)
static Areas.Area
getAreaByName(Context context, java.lang.String areaname)
static int
getAreaDatabaseSize(Context context)
static java.util.ArrayList<Areas.Area>
getAreas(Context context, int type)
static java.util.ArrayList<Areas.Area>
getAreas(Context context, int[] types)
static java.util.ArrayList<Areas.Area>
getAreas(Context context, java.util.ArrayList<java.lang.String> warincellIDs)
Gets Areas with initialized polygons.static int
test(Context context)
-
-
-
Method Detail
-
getAreaDatabaseSize
public static int getAreaDatabaseSize(Context context)
-
doesAreaDatabaseExist
public static boolean doesAreaDatabaseExist(Context context)
-
getArea
public static Areas.Area getArea(Context context, java.lang.String warincellID)
-
getAreas
public static java.util.ArrayList<Areas.Area> getAreas(Context context, java.util.ArrayList<java.lang.String> warincellIDs)
Gets Areas with initialized polygons.- Parameters:
context
-warincellIDs
- the warncellIDs to get the polygons for. When null, the whole database will be returned.- Returns:
- an arraylist of areas.
-
getAreas
public static java.util.ArrayList<Areas.Area> getAreas(Context context, int type)
-
getAreas
public static java.util.ArrayList<Areas.Area> getAreas(Context context, int[] types)
-
getAreaByName
public static Areas.Area getAreaByName(Context context, java.lang.String areaname)
-
getAllAreaNames
public static java.util.ArrayList<java.lang.String> getAllAreaNames(Context context)
-
getAllWarncellIDs
public static java.util.ArrayList<java.lang.String> getAllWarncellIDs(Context context)
-
test
public static int test(Context context)
-
-