Enum Class Common.LocaleConstant

java.lang.Object
java.lang.Enum<Common.LocaleConstant>
br.net.dd.netherwingcore.common.Common.LocaleConstant
All Implemented Interfaces:
Serializable, Comparable<Common.LocaleConstant>, Constable
Enclosing class:
Common

public static enum Common.LocaleConstant extends Enum<Common.LocaleConstant>
LocaleConstant represents the supported locales of the application.
  • Enum Constant Details

  • Field Details

    • TOTAL_LOCALES

      public static final int TOTAL_LOCALES
  • Method Details

    • values

      public static Common.LocaleConstant[] 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 Common.LocaleConstant 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
    • getValue

      public int getValue()
      Gets the value associated with the locale.
      Returns:
      the value of the locale.
    • isValidLocale

      public static boolean isValidLocale(Common.LocaleConstant locale)
      Checks if the given locale is valid (not LOCALE_none).
      Parameters:
      locale - the locale to check.
      Returns:
      true if valid; otherwise, false.