Package africa.absa.inception.reference
Class Language
java.lang.Object
africa.absa.inception.reference.Language
- All Implemented Interfaces:
Serializable
The Language class holds the information for a language.
See: https://en.wikipedia.org/wiki/List_of_official_languages_by_country_and_territory
- 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 639-1 alpha-2 code for the language.Returns the description for the language.Returns the ISO 639-2 alpha-3 code for the language.Returns the Unicode locale identifier for the language.getName()Returns the name of the language.Returns the short name for the language.Returns the sort index for the language.inthashCode()Returns a hash code value for the object.voidSet the ISO 639-1 alpha-2 code for the language.voidsetDescription(String description) Set the description for the language.voidsetIso3Code(String iso3Code) Set the ISO 639-2 alpha-3 code for the language.voidsetLocaleId(String localeId) Set the Unicode locale identifier for the language.voidSet the name of the language.voidsetShortName(String shortDescription) Set the short name for the language.voidsetSortIndex(Integer sortIndex) Set the sort index for the language.
-
Constructor Details
-
Language
public Language()Constructs a new Language.
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getCode
Returns the ISO 639-1 alpha-2 code for the language.- Returns:
- the ISO 639-1 alpha-2 code for the language
-
getDescription
Returns the description for the language.- Returns:
- the description for the language
-
getIso3Code
Returns the ISO 639-2 alpha-3 code for the language.- Returns:
- the ISO 639-2 alpha-3 code for the language
-
getLocaleId
Returns the Unicode locale identifier for the language.- Returns:
- the Unicode locale identifier for the language
-
getName
Returns the name of the language.- Returns:
- the name of the language
-
getShortName
Returns the short name for the language.- Returns:
- the short name for the language
-
getSortIndex
Returns the sort index for the language.- Returns:
- the sort index for the language
-
hashCode
public int hashCode()Returns a hash code value for the object. -
setCode
Set the ISO 639-1 alpha-2 code for the language.- Parameters:
code- the ISO 639-1 alpha-2 code for the language
-
setDescription
Set the description for the language.- Parameters:
description- the description for the language
-
setIso3Code
Set the ISO 639-2 alpha-3 code for the language.- Parameters:
iso3Code- the ISO 639-2 alpha-3 code for the language
-
setLocaleId
Set the Unicode locale identifier for the language.- Parameters:
localeId- the Unicode locale identifier for the language
-
setName
Set the name of the language.- Parameters:
name- the name of the language
-
setShortName
Set the short name for the language.- Parameters:
shortDescription- the short name for the language
-
setSortIndex
Set the sort index for the language.- Parameters:
sortIndex- the sort index for the language
-