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
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_ELIDE_DUPLICATES |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
android.os.Parcelable
abstract
int
|
describeContents()
|
abstract
void
|
writeToParcel(Parcel arg0, int arg1)
|
|
Fields
Public Methods
public
int
describeContents
()
public
boolean
equals
(Object obj)
public
String
getCity
()
Returns |
String |
The city name. This method will return an empty string if the city name was not set
|
public
String
getCityId
()
Returns |
String |
The city ID. This method will return an empty string if the city ID was not set
|
public
String
getCountry
()
Returns |
String |
The country name. This method will return an empty string if the country ID was not
set
|
public
String
getCountryId
()
Returns |
String |
The country ID. This method will return an empty string if the country ID was not set
|
public
String
getPostalCode
()
Returns |
String |
The postal/ZIP code. This method will return an empty string if the postal/ZIP code
was not set
|
public
String
getState
()
Returns |
String |
The state name. This method will return an empty string if the state was not set
|
public
String
toString
()
public
void
writeToParcel
(Parcel dest, int flags)
Parameters |
dest |
Parcel |
flags |
int |