Package es.kukenan.smartfi.common.enums
Enum Class LanguageEnumeration
- All Implemented Interfaces:
Serializable,Comparable<LanguageEnumeration>,Constable
Language enumeration.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLanguageEnumeration(int id, String name, String description) Language Relation type enum constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the Language description value.intgetId()Get the Language id value.static intgetIdByName(String name) Get the enum name by its language id.getName()Get the Language name value.static StringgetNameById(int id) Get the enum name by its language id.static LanguageEnumerationReturns the enum constant of this class with the specified name.static LanguageEnumeration[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ESPAÑOL
Spanish language. -
INGLES
English language. -
CATALAN
English language.
-
-
Field Details
-
id
private final int ididentifier. -
name
Language type name. -
description
Language type name.
-
-
Constructor Details
-
LanguageEnumeration
Language Relation type enum constructor.- Parameters:
id- identifier.name- language type name.description- description.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNameById
Get the enum name by its language id.- Parameters:
id- code identifier.- Returns:
- enum name.
-
getIdByName
Get the enum name by its language id.- Parameters:
name- language type name.- Returns:
- enum id.
-
getId
public int getId()Get the Language id value.- Returns:
- id value.
-
getName
Get the Language name value.- Returns:
- name value.
-
getDescription
Get the Language description value.- Returns:
- Language description value.
-