Class Language

  • All Implemented Interfaces:
    Serializable

    @Entity
    public class Language
    extends Object
    implements 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:
    Serialized Form
    • Constructor Detail

      • Language

        public Language()
        Constructs a new Language.
    • Method Detail

      • 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 639-1 alpha-2 code for the language.
        Returns:
        the ISO 639-1 alpha-2 code for the language
      • getDescription

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

        public String getIso3Code()
        Returns the ISO 639-2 alpha-3 code for the language.
        Returns:
        the ISO 639-2 alpha-3 code for the language
      • getLocaleId

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

        public String getName()
        Returns the name of the language.
        Returns:
        the name of the language
      • getShortName

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

        public Integer 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.
        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for the object
      • setCode

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

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

        public void setIso3Code​(String iso3Code)
        Set the ISO 639-2 alpha-3 code for the language.
        Parameters:
        iso3Code - the ISO 639-2 alpha-3 code for the language
      • setLocaleId

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

        public void setName​(String name)
        Set the name of the language.
        Parameters:
        name - the name of the language
      • setShortName

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

        public void setSortIndex​(Integer sortIndex)
        Set the sort index for the language.
        Parameters:
        sortIndex - the sort index for the language