public final class

WeatherLocation

extends Object
implements Parcelable
java.lang.Object
   ↳ lineageos.weather.WeatherLocation

Class Overview

A class representing a geographical location that a weather service provider can use to get weather data from. Each service provider will potentially populate objects of this class with different content, so make sure you don't preserve the values when a service provider is changed

Summary

Nested Classes
class WeatherLocation.Builder Builder class for WeatherLocation  
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<WeatherLocation> CREATOR
Public Methods
int describeContents()
boolean equals(Object obj)
String getCity()
String getCityId()
String getCountry()
String getCountryId()
String getPostalCode()
String getState()
int hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<WeatherLocation> CREATOR

added in API level 5

Public Methods

public int describeContents ()

added in API level 5

Returns
int

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public String getCity ()

added in API level 5

Returns
String The city name. This method will return an empty string if the city name was not set

public String getCityId ()

added in API level 5

Returns
String The city ID. This method will return an empty string if the city ID was not set

public String getCountry ()

added in API level 5

Returns
String The country name. This method will return an empty string if the country ID was not set

public String getCountryId ()

added in API level 5

Returns
String The country ID. This method will return an empty string if the country ID was not set

public String getPostalCode ()

added in API level 5

Returns
String The postal/ZIP code. This method will return an empty string if the postal/ZIP code was not set

public String getState ()

added in API level 5

Returns
String The state name. This method will return an empty string if the state was not set

public int hashCode ()

Returns
int

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

added in API level 5

Parameters
dest Parcel
flags int