Class StationFavorites
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.StationFavorites
-
public class StationFavorites extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FAVORITES_SEPARATOR
-
Constructor Summary
Constructors Constructor Description StationFavorites(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFavorite(Weather.WeatherLocation newFavorite)
static void
deleteList(Context context)
static Weather.WeatherLocation
getDefaultWeatherLocation()
static java.util.ArrayList<Weather.WeatherLocation>
getFavorites(Context context)
static java.util.ArrayList<Weather.WeatherLocation>
resetFavorites(Context context)
static java.util.ArrayList<Weather.WeatherLocation>
saveFavorites(Context context, java.util.ArrayList<Weather.WeatherLocation> favorites)
-
-
-
Field Detail
-
FAVORITES_SEPARATOR
public static final java.lang.String FAVORITES_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFavorites
public static java.util.ArrayList<Weather.WeatherLocation> getFavorites(Context context)
-
saveFavorites
public static java.util.ArrayList<Weather.WeatherLocation> saveFavorites(Context context, java.util.ArrayList<Weather.WeatherLocation> favorites)
-
addFavorite
public void addFavorite(Weather.WeatherLocation newFavorite)
-
getDefaultWeatherLocation
public static Weather.WeatherLocation getDefaultWeatherLocation()
-
deleteList
public static void deleteList(Context context)
-
resetFavorites
public static java.util.ArrayList<Weather.WeatherLocation> resetFavorites(Context context)
-
-