Class Country

  • All Implemented Interfaces:
    android.os.Parcelable, java.lang.Comparable<com.yoti.mobile.android.common.ui.widgets.alphabeticalPicker.AlphabeticalPickerModel>

    public class Country
    extends com.yoti.mobile.android.common.ui.widgets.alphabeticalPicker.AlphabeticalPickerModel
    implements android.os.Parcelable
    POJO class that contains a country's information: 2 digits country code 3 digits country code Telephone country code Name of the country Demonym
    • 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<Country> CREATOR  
      • Fields inherited from class com.yoti.mobile.android.common.ui.widgets.alphabeticalPicker.AlphabeticalPickerModel

        $stable
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Country​(android.os.Parcel in)  
        Country​(java.lang.String iso2Code, java.lang.String iso3Code, int phoneCode, java.lang.String name, java.lang.String demonym)  
    • Field Detail

      • CREATOR

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

      • Country

        public Country​(java.lang.String iso2Code,
                       java.lang.String iso3Code,
                       int phoneCode,
                       java.lang.String name,
                       java.lang.String demonym)
      • Country

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

      • writeToParcel

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

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

        public java.lang.String getName()
      • getIso2Code

        public java.lang.String getIso2Code()
      • getIso3Code

        public java.lang.String getIso3Code()
      • getPhoneCode

        public int getPhoneCode()
      • getDemonym

        public java.lang.String getDemonym()
      • toString

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

        @NonNull
        public java.lang.String getMainText()
        Specified by:
        getMainText in class com.yoti.mobile.android.common.ui.widgets.alphabeticalPicker.AlphabeticalPickerModel
      • getSubText

        public java.lang.String getSubText()
        Overrides:
        getSubText in class com.yoti.mobile.android.common.ui.widgets.alphabeticalPicker.AlphabeticalPickerModel