Package africa.absa.inception.reference
Class Country
java.lang.Object
africa.absa.inception.reference.Country
- All Implemented Interfaces:
Serializable
The Country class holds the information for a country.
- Author:
- Marcus Portmann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.getCode()Returns the ISO 3166-1 alpha-2 code for the country.Returns the description for the country.Returns the ISO 3166-1 alpha-3 code for the country.Returns the Unicode locale identifier for the country.getName()Returns the name of the country.Returns the nationality for the country.Returns the short name for the country.Returns the sort index for the country.Returns the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with.inthashCode()Returns a hash code value for the object.voidSet the ISO 3166-1 alpha-2 code for the country.voidsetDescription(String description) Set the description for the country.voidsetIso3Code(String iso3Code) Set the ISO 3166-1 alpha-3 code for the country.voidsetLocaleId(String localeId) Set the Unicode locale identifier for the country.voidSet the name of the country.voidsetNationality(String nationality) Set the nationality for the country.voidsetShortName(String shortDescription) Set the short name for the country.voidsetSortIndex(Integer sortIndex) Set the sort index for the country.voidsetSovereignState(String sovereignState) Set the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with.
-
Constructor Details
-
Country
public Country()Constructs a new Country.
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getCode
Returns the ISO 3166-1 alpha-2 code for the country.- Returns:
- the ISO 3166-1 alpha-2 code for the country
-
getDescription
Returns the description for the country.- Returns:
- the description for the country
-
getIso3Code
Returns the ISO 3166-1 alpha-3 code for the country.- Returns:
- the ISO 3166-1 alpha-3 code for the country
-
getLocaleId
Returns the Unicode locale identifier for the country.- Returns:
- the Unicode locale identifier for the country
-
getName
Returns the name of the country.- Returns:
- the name of the country
-
getNationality
Returns the nationality for the country.- Returns:
- the nationality for the country
-
getShortName
Returns the short name for the country.- Returns:
- the short name for the country
-
getSortIndex
Returns the sort index for the country.- Returns:
- the sort index for the country
-
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. -
setCode
Set the ISO 3166-1 alpha-2 code for the country.- Parameters:
code- the ISO 3166-1 alpha-2 code for the country
-
setDescription
Set the description for the country.- Parameters:
description- the description for the country
-
setIso3Code
Set the ISO 3166-1 alpha-3 code for the country.- Parameters:
iso3Code- the ISO 3166-1 alpha-3 code for the country
-
setLocaleId
Set the Unicode locale identifier for the country.- Parameters:
localeId- the Unicode locale identifier for the country
-
setName
Set the name of the country.- Parameters:
name- the name of the country
-
setNationality
Set the nationality for the country.- Parameters:
nationality- the nationality for the country
-
setShortName
Set the short name for the country.- Parameters:
shortDescription- the short name for the country
-
setSortIndex
Set the sort index for the country.- Parameters:
sortIndex- the sort index for the country
-
setSovereignState
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
-