Enum Class LanguageEnumeration

java.lang.Object
java.lang.Enum<LanguageEnumeration>
es.kukenan.smartfi.common.enums.LanguageEnumeration
All Implemented Interfaces:
Serializable, Comparable<LanguageEnumeration>, Constable

public enum LanguageEnumeration extends Enum<LanguageEnumeration>
Language enumeration.
  • Enum Constant Details

  • Field Details

    • id

      private final int id
      identifier.
    • name

      private final String name
      Language type name.
    • description

      private final String description
      Language type name.
  • Constructor Details

    • LanguageEnumeration

      private LanguageEnumeration(int id, String name, String description)
      Language Relation type enum constructor.
      Parameters:
      id - identifier.
      name - language type name.
      description - description.
  • Method Details

    • values

      public static LanguageEnumeration[] 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

      public static LanguageEnumeration valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNameById

      public static String getNameById(int id)
      Get the enum name by its language id.
      Parameters:
      id - code identifier.
      Returns:
      enum name.
    • getIdByName

      public static int getIdByName(String name)
      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

      public String getName()
      Get the Language name value.
      Returns:
      name value.
    • getDescription

      public String getDescription()
      Get the Language description value.
      Returns:
      Language description value.