Package africa.absa.inception.reference
Class Region
java.lang.Object
africa.absa.inception.reference.Region
- All Implemented Interfaces:
Serializable
The Region class holds the information for a region.
- 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-2 subdivision code for the region.Returns the ISO 3166-1 alpha-2 code for the country the region is associated with.Returns the description for the region.Returns the Unicode locale identifier for the region.getName()Returns the name of the region.Returns the sort index for the region.inthashCode()Returns a hash code value for the object.voidSet the ISO 3166-2 subdivision code for the region.voidsetCountry(String country) Set the ISO 3166-1 alpha-2 code for the country the region is associated with.voidsetDescription(String description) Set the description for the region.voidsetLocaleId(String localeId) Set the Unicode locale identifier for the region.voidSet the name of the region.voidsetSortIndex(Integer sortIndex) Set the sort index for the region.
-
Constructor Details
-
Region
public Region()Constructs a new Region.
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getCode
Returns the ISO 3166-2 subdivision code for the region.- Returns:
- the ISO 3166-2 subdivision code for the region
-
getCountry
Returns the ISO 3166-1 alpha-2 code for the country the region is associated with.- Returns:
- the ISO 3166-1 alpha-2 code for the country the region is associated with
-
getDescription
Returns the description for the region.- Returns:
- the description for the region
-
getLocaleId
Returns the Unicode locale identifier for the region.- Returns:
- the Unicode locale identifier for the region
-
getName
Returns the name of the region.- Returns:
- the name of the region
-
getSortIndex
Returns the sort index for the region.- Returns:
- the sort index for the region
-
hashCode
public int hashCode()Returns a hash code value for the object. -
setCode
Set the ISO 3166-2 subdivision code for the region.- Parameters:
code- the ISO 3166-2 subdivision code for the region
-
setCountry
Set the ISO 3166-1 alpha-2 code for the country the region is associated with.- Parameters:
country- the ISO 3166-1 alpha-2 code for the country the region is associated with
-
setDescription
Set the description for the region.- Parameters:
description- the description for the region
-
setLocaleId
Set the Unicode locale identifier for the region.- Parameters:
localeId- the Unicode locale identifier for the region
-
setName
Set the name of the region.- Parameters:
name- the name of the region
-
setSortIndex
Set the sort index for the region.- Parameters:
sortIndex- the sort index for the region
-