Class CountryInfo

  • All Implemented Interfaces:
    android.os.Parcelable, java.lang.Comparable<CountryInfo>

    public final class CountryInfo
    extends java.lang.Object
    implements java.lang.Comparable<CountryInfo>, android.os.Parcelable
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.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​(android.os.Parcel in)  
        CountryInfo​(java.util.Locale locale, int countryCode)  
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<CountryInfo> CREATOR
    • Constructor Detail

      • CountryInfo

        public CountryInfo​(java.util.Locale locale,
                           int countryCode)
      • CountryInfo

        protected CountryInfo​(android.os.Parcel in)
    • Method Detail

      • localeToEmoji

        public static java.lang.String localeToEmoji​(java.util.Locale locale)
      • getLocale

        public java.util.Locale getLocale()
      • getCountryCode

        public int getCountryCode()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(CountryInfo info)
        Specified by:
        compareTo in interface java.lang.Comparable<CountryInfo>
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable