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 floatACCURACY_UNKNOWNstatic <any>CREATORstatic java.lang.StringCUSTOMPROVIDERstatic java.lang.StringEMPTYVALUEstatic java.lang.StringEXTRAS_ITEMS_TO_SHOWstatic java.lang.StringEXTRAS_NAMEstatic java.lang.StringPARCELABLE_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)protectedWeatherLocation(Parcel in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Weather.WeatherLocation s1, Weather.WeatherLocation s2)intdescribeContents()booleanequals(Weather.WeatherLocation s2)floatgetAccuracy()java.lang.StringgetDescription(Context context)java.lang.StringgetDescriptionAlternate()static java.util.ArrayList<java.lang.String>getDescriptions(Context context, java.util.ArrayList<Weather.WeatherLocation> weatherLocations)java.lang.StringgetName()static java.util.ArrayList<java.lang.String>getNames(java.util.ArrayList<Weather.WeatherLocation> weatherLocations)java.lang.StringgetOriginalDescription()intgetType()booleanhasAccuracy()booleanhasAlternateDescription()booleanisDMO()booleanisInList(java.util.ArrayList<Weather.WeatherLocation> locations)booleanisMOS()java.lang.StringserializeToString()voidsetDescription(java.lang.String s)voidsetDescriptionAlternate(java.lang.String s)voidsetName(java.lang.String s)LocationtoLocation()voidwriteToParcel(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:
comparein 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)
-
-