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 float
ACCURACY_UNKNOWN
static <any>
CREATOR
static java.lang.String
CUSTOMPROVIDER
static java.lang.String
EMPTYVALUE
static java.lang.String
EXTRAS_ITEMS_TO_SHOW
static java.lang.String
EXTRAS_NAME
static java.lang.String
PARCELABLE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description WeatherLocation()
WeatherLocation(Weather.WeatherLocation weatherLocation)
WeatherLocation(java.lang.String description, java.lang.String description_alternate, java.lang.String name, int type, double latitude, double longitude, double altitude)
WeatherLocation(Location location)
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()
boolean
equals(Weather.WeatherLocation s2)
float
getAccuracy()
java.lang.String
getDescription(Context context)
java.lang.String
getDescriptionAlternate()
static java.util.ArrayList<java.lang.String>
getDescriptions(Context context, java.util.ArrayList<Weather.WeatherLocation> weatherLocations)
java.lang.String
getName()
static java.util.ArrayList<java.lang.String>
getNames(java.util.ArrayList<Weather.WeatherLocation> weatherLocations)
java.lang.String
getOriginalDescription()
int
getType()
boolean
hasAccuracy()
boolean
hasAlternateDescription()
boolean
isDMO()
boolean
isInList(java.util.ArrayList<Weather.WeatherLocation> locations)
boolean
isMOS()
java.lang.String
serializeToString()
void
setDescription(java.lang.String s)
void
setDescriptionAlternate(java.lang.String s)
void
setName(java.lang.String s)
Location
toLocation()
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
-
ACCURACY_UNKNOWN
public static final float ACCURACY_UNKNOWN
- See Also:
- Constant Field Values
-
EMPTYVALUE
public static final java.lang.String EMPTYVALUE
- See Also:
- Constant Field Values
-
CUSTOMPROVIDER
public static final java.lang.String CUSTOMPROVIDER
- See Also:
- Constant Field Values
-
CREATOR
public static final <any> CREATOR
-
-
Constructor Detail
-
WeatherLocation
public WeatherLocation()
-
WeatherLocation
public WeatherLocation(java.lang.String description, java.lang.String description_alternate, java.lang.String name, int type, double latitude, double longitude, double altitude)
-
WeatherLocation
public WeatherLocation(Weather.WeatherLocation weatherLocation)
-
WeatherLocation
public WeatherLocation(Location location)
-
WeatherLocation
protected WeatherLocation(Parcel in)
-
-
Method Detail
-
serializeToString
public java.lang.String serializeToString()
-
hasAccuracy
public boolean hasAccuracy()
-
getAccuracy
public float getAccuracy()
-
toLocation
public Location toLocation()
-
isInList
public boolean isInList(java.util.ArrayList<Weather.WeatherLocation> locations)
-
compare
public int compare(Weather.WeatherLocation s1, Weather.WeatherLocation s2)
- Specified by:
compare
in interfacejava.util.Comparator<Weather.WeatherLocation>
-
equals
public boolean equals(Weather.WeatherLocation s2)
-
describeContents
public int describeContents()
-
writeToParcel
public void writeToParcel(Parcel parcel, int flags)
-
getDescriptions
public static java.util.ArrayList<java.lang.String> getDescriptions(Context context, java.util.ArrayList<Weather.WeatherLocation> weatherLocations)
-
getNames
public static java.util.ArrayList<java.lang.String> getNames(java.util.ArrayList<Weather.WeatherLocation> weatherLocations)
-
getType
public int getType()
-
isDMO
public boolean isDMO()
-
isMOS
public boolean isMOS()
-
hasAlternateDescription
public boolean hasAlternateDescription()
-
getName
public java.lang.String getName()
-
getOriginalDescription
public java.lang.String getOriginalDescription()
-
getDescription
public java.lang.String getDescription(Context context)
-
getDescriptionAlternate
public java.lang.String getDescriptionAlternate()
-
setName
public void setName(java.lang.String s)
-
setDescription
public void setDescription(java.lang.String s)
-
setDescriptionAlternate
public void setDescriptionAlternate(java.lang.String s)
-
-