Package com.firebase.ui.auth.data.model
Class CountryInfo
- java.lang.Object
-
- com.firebase.ui.auth.data.model.CountryInfo
-
- All Implemented Interfaces:
Parcelable
,Comparable<CountryInfo>
public final class CountryInfo extends Object implements Comparable<CountryInfo>, Parcelable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<CountryInfo>
CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CountryInfo(Parcel in)
CountryInfo(Locale locale, int countryCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CountryInfo info)
int
describeContents()
boolean
equals(Object o)
int
getCountryCode()
Locale
getLocale()
int
hashCode()
static String
localeToEmoji(Locale locale)
String
toShortString()
String
toString()
void
writeToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<CountryInfo> CREATOR
-
-
Method Detail
-
getLocale
public Locale getLocale()
-
getCountryCode
public int getCountryCode()
-
toShortString
public String toShortString()
-
compareTo
public int compareTo(CountryInfo info)
- Specified by:
compareTo
in interfaceComparable<CountryInfo>
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
-