Class Country

java.lang.Object
africa.absa.inception.reference.Country
All Implemented Interfaces:
Serializable

@Entity public class Country extends Object implements Serializable
The Country class holds the information for a country.
Author:
Marcus Portmann
See Also:
  • Constructor Details

    • Country

      public Country()
      Constructs a new Country.
  • Method Details

    • equals

      public boolean equals(Object object)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      object - the reference object with which to compare
      Returns:
      true if this object is the same as the object argument otherwise false
    • getCode

      public String getCode()
      Returns the ISO 3166-1 alpha-2 code for the country.
      Returns:
      the ISO 3166-1 alpha-2 code for the country
    • getDescription

      public String getDescription()
      Returns the description for the country.
      Returns:
      the description for the country
    • getIso3Code

      public String getIso3Code()
      Returns the ISO 3166-1 alpha-3 code for the country.
      Returns:
      the ISO 3166-1 alpha-3 code for the country
    • getLocaleId

      public String getLocaleId()
      Returns the Unicode locale identifier for the country.
      Returns:
      the Unicode locale identifier for the country
    • getName

      public String getName()
      Returns the name of the country.
      Returns:
      the name of the country
    • getNationality

      public String getNationality()
      Returns the nationality for the country.
      Returns:
      the nationality for the country
    • getShortName

      public String getShortName()
      Returns the short name for the country.
      Returns:
      the short name for the country
    • getSortIndex

      public Integer getSortIndex()
      Returns the sort index for the country.
      Returns:
      the sort index for the country
    • getSovereignState

      public String getSovereignState()
      Returns the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with.
      Returns:
      the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for the object
    • setCode

      public void setCode(String code)
      Set the ISO 3166-1 alpha-2 code for the country.
      Parameters:
      code - the ISO 3166-1 alpha-2 code for the country
    • setDescription

      public void setDescription(String description)
      Set the description for the country.
      Parameters:
      description - the description for the country
    • setIso3Code

      public void setIso3Code(String iso3Code)
      Set the ISO 3166-1 alpha-3 code for the country.
      Parameters:
      iso3Code - the ISO 3166-1 alpha-3 code for the country
    • setLocaleId

      public void setLocaleId(String localeId)
      Set the Unicode locale identifier for the country.
      Parameters:
      localeId - the Unicode locale identifier for the country
    • setName

      public void setName(String name)
      Set the name of the country.
      Parameters:
      name - the name of the country
    • setNationality

      public void setNationality(String nationality)
      Set the nationality for the country.
      Parameters:
      nationality - the nationality for the country
    • setShortName

      public void setShortName(String shortDescription)
      Set the short name for the country.
      Parameters:
      shortDescription - the short name for the country
    • setSortIndex

      public void setSortIndex(Integer sortIndex)
      Set the sort index for the country.
      Parameters:
      sortIndex - the sort index for the country
    • setSovereignState

      public void setSovereignState(String sovereignState)
      Set the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with.
      Parameters:
      sovereignState - the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with