Class Weather.WeatherLocation
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.Weather.WeatherLocation
-
- All Implemented Interfaces:
java.util.Comparator<Weather.WeatherLocation>
- Enclosing class:
- Weather
public static class Weather.WeatherLocation extends java.lang.Object implements java.util.Comparator<Weather.WeatherLocation>
-
-
Field Summary
Fields Modifier and Type Field Description static <any>
CREATOR
java.lang.String
description
static java.lang.String
EXTRAS_ITEMS_TO_SHOW
static java.lang.String
EXTRAS_NAME
java.lang.String
name
static java.lang.String
PARCELABLE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description WeatherLocation()
WeatherLocation(java.lang.String description, java.lang.String name, long latitude, long longitude, long altitude)
protected
WeatherLocation(Parcel in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Weather.WeatherLocation s1, Weather.WeatherLocation s2)
int
describeContents()
static java.util.ArrayList<java.lang.String>
getDescriptions(java.util.ArrayList<Weather.WeatherLocation> weatherLocations)
static java.util.ArrayList<java.lang.String>
getNames(java.util.ArrayList<Weather.WeatherLocation> weatherLocations)
void
writeToParcel(Parcel parcel, int flags)
-
-
-
Field Detail
-
EXTRAS_NAME
public static final java.lang.String EXTRAS_NAME
- See Also:
- Constant Field Values
-
EXTRAS_ITEMS_TO_SHOW
public static final java.lang.String EXTRAS_ITEMS_TO_SHOW
- See Also:
- Constant Field Values
-
PARCELABLE_NAME
public static final java.lang.String PARCELABLE_NAME
- See Also:
- Constant Field Values
-
description
public java.lang.String description
-
name
public java.lang.String name
-
CREATOR
public static final <any> CREATOR
-
-
Method Detail
-
compare
public int compare(Weather.WeatherLocation s1, Weather.WeatherLocation s2)
- Specified by:
compare
in interfacejava.util.Comparator<Weather.WeatherLocation>
-
describeContents
public int describeContents()
-
writeToParcel
public void writeToParcel(Parcel parcel, int flags)
-
getDescriptions
public static java.util.ArrayList<java.lang.String> getDescriptions(java.util.ArrayList<Weather.WeatherLocation> weatherLocations)
-
getNames
public static java.util.ArrayList<java.lang.String> getNames(java.util.ArrayList<Weather.WeatherLocation> weatherLocations)
-
-