Class Weather.WeatherLocation
java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.Weather.WeatherLocation
- All Implemented Interfaces:
Comparator<Weather.WeatherLocation>
- Enclosing class:
Weather
public static class Weather.WeatherLocation extends Object implements Comparator<Weather.WeatherLocation>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionWeatherLocation(Weather.WeatherLocation weatherLocation) WeatherLocation(String description, String description_alternate, String name, int type, double latitude, double longitude, double altitude) WeatherLocation(Location location) protectedWeatherLocation(Parcel in) -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanfloatgetDescription(Context context) getDescriptions(Context context, ArrayList<Weather.WeatherLocation> weatherLocations) getName()getNames(ArrayList<Weather.WeatherLocation> weatherLocations) intgetType()booleanbooleanbooleanisDMO()booleanisInList(ArrayList<Weather.WeatherLocation> locations) booleanisMOS()voidvoidvoidLocationvoidwriteToParcel(Parcel parcel, int flags) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
EXTRAS_NAME
- See Also:
-
EXTRAS_ITEMS_TO_SHOW
- See Also:
-
PARCELABLE_NAME
- See Also:
-
ACCURACY_UNKNOWN
public static final float ACCURACY_UNKNOWN- See Also:
-
EMPTYVALUE
- See Also:
-
CUSTOMPROVIDER
- See Also:
-
CREATOR
public static final <any> CREATOR
-
-
Constructor Details
-
WeatherLocation
public WeatherLocation() -
WeatherLocation
-
WeatherLocation
-
WeatherLocation
public WeatherLocation(Location location) -
WeatherLocation
protected WeatherLocation(Parcel in)
-
-
Method Details
-
serializeToString
-
hasAccuracy
public boolean hasAccuracy() -
getAccuracy
public float getAccuracy() -
toLocation
public Location toLocation() -
isInList
-
compare
- Specified by:
comparein interfaceComparator<Weather.WeatherLocation>
-
equals
-
describeContents
public int describeContents() -
writeToParcel
public void writeToParcel(Parcel parcel, int flags) -
getDescriptions
public static ArrayList<String> getDescriptions(Context context, ArrayList<Weather.WeatherLocation> weatherLocations) -
getNames
-
getType
public int getType() -
isDMO
public boolean isDMO() -
isMOS
public boolean isMOS() -
hasAlternateDescription
public boolean hasAlternateDescription() -
getName
-
getOriginalDescription
-
getDescription
-
getDescriptionAlternate
-
setName
-
setDescription
-
setDescriptionAlternate
-