Enum ELocaleName

java.lang.Object
java.lang.Enum<ELocaleName>
com.helger.commons.locale.ELocaleName
All Implemented Interfaces:
IHasDisplayText, Serializable, Comparable<ELocaleName>, java.lang.constant.Constable

@Translatable public enum ELocaleName extends Enum<ELocaleName> implements IHasDisplayText
Special locale names that are not part of the Java runtime.
Author:
Philip Helger
  • Enum Constant Details

    • ID_LANGUAGE_ALL

      public static final ELocaleName ID_LANGUAGE_ALL
    • ID_LANGUAGE_INDEPENDENT

      public static final ELocaleName ID_LANGUAGE_INDEPENDENT
  • Method Details

    • values

      public static ELocaleName[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ELocaleName valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getDisplayText

      @Nullable public String getDisplayText(@Nonnull Locale aContentLocale)
      Specified by:
      getDisplayText in interface IHasDisplayText
      Parameters:
      aContentLocale - The locale to be used for resolving. May not be null.
      Returns:
      The display text of the object in the given locale. May be null if the text could not be resolved in the passed locale.