package com.rilixtech;

/**
 * Created by hbb20 on 11/1/16.
 *
 * Clean up and moving all Country related code to {@link CountryUtils}.
 * a pojo should be a pojo and no more.
 * Updated by Joielechong 13 May 2017
 *
 */
public class Country {
  private String iso;
  private String phoneCode;
  private String name;

  public Country(String iso, String phoneCode, String name) {
    this.iso = iso;
    this.phoneCode = phoneCode;
    this.name = name;
  }

  public String getIso() {
    return iso;
  }

  public void setIso(String iso) {
    this.iso = iso;
  }

  public String getPhoneCode() {
    return phoneCode;
  }

  public void setPhoneCode(String phoneCode) {
    this.phoneCode = phoneCode;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  /**
   * If country have query word in name or name code or phone code, this will return true.
   */
  boolean isEligibleForQuery(String query) {
    query = query.toLowerCase();
    return getName().toLowerCase().contains(query)
        || getIso().toLowerCase().contains(query)
        || getPhoneCode().toLowerCase().contains(query);
  }
}

@@ -210,16 +210,106 @@
 2017%0A *%0A
+ * Make class member final and remove setter.%0A * Updated by Joielechong 22 August 2018%0A *%0A
  */%0Apubl
@@ -333,24 +333,30 @@
 %7B%0A  private 
+final 
 String iso;%0A
@@ -361,24 +361,30 @@
 ;%0A  private 
+final 
 String phone
@@ -399,16 +399,22 @@
 private 
+final 
 String n
@@ -621,305 +621,97 @@
 lic 
-void setIso(String iso) %7B%0A    this.iso = iso;%0A  %7D%0A%0A  public String getPhoneCode() %7B%0A    return phoneCode;%0A  %7D%0A%0A  public void setPhoneCode(String phoneCode) %7B%0A    this.phoneCode = phoneCode;%0A  %7D%0A%0A  public String getName() %7B%0A    return name;%0A  %7D%0A%0A  public void setName(String name) %7B%0A    this.name =
+String getPhoneCode() %7B%0A    return phoneCode;%0A  %7D%0A%0A  public String getName() %7B%0A    return
  nam

Make final member of Country