Package africa.absa.inception.reference
Class Region
- java.lang.Object
-
- africa.absa.inception.reference.Region
-
- All Implemented Interfaces:
Serializable
@Entity public class Region extends Object implements Serializable
The Region class holds the information for a region.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Region()Constructs a new Region.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Indicates whether some other object is "equal to" this one.StringgetCode()Returns the ISO 3166-2 subdivision code for the region.StringgetCountry()Returns the ISO 3166-1 alpha-2 code for the country the region is associated with.StringgetDescription()Returns the description for the region.StringgetLocaleId()Returns the Unicode locale identifier for the region.StringgetName()Returns the name of the region.IntegergetSortIndex()Returns the sort index for the region.inthashCode()Returns a hash code value for the object.voidsetCode(String code)Set 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.voidsetName(String name)Set the name of the region.voidsetSortIndex(Integer sortIndex)Set the sort index for the region.
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.
-
getCode
public String getCode()
Returns the ISO 3166-2 subdivision code for the region.- Returns:
- the ISO 3166-2 subdivision code for the region
-
getCountry
public String 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
public String getDescription()
Returns the description for the region.- Returns:
- the description for the region
-
getLocaleId
public String getLocaleId()
Returns the Unicode locale identifier for the region.- Returns:
- the Unicode locale identifier for the region
-
getName
public String getName()
Returns the name of the region.- Returns:
- the name of the region
-
getSortIndex
public Integer 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
public void setCode(String code)
Set the ISO 3166-2 subdivision code for the region.- Parameters:
code- the ISO 3166-2 subdivision code for the region
-
setCountry
public void setCountry(String country)
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
public void setDescription(String description)
Set the description for the region.- Parameters:
description- the description for the region
-
setLocaleId
public void setLocaleId(String localeId)
Set the Unicode locale identifier for the region.- Parameters:
localeId- the Unicode locale identifier for the region
-
setName
public void setName(String name)
Set the name of the region.- Parameters:
name- the name of the region
-
setSortIndex
public void setSortIndex(Integer sortIndex)
Set the sort index for the region.- Parameters:
sortIndex- the sort index for the region
-
-