@Translatable public enum ELocaleName extends Enum<ELocaleName> implements IHasDisplayText
| Enum Constant and Description |
|---|
ID_LANGUAGE_ALL |
ID_LANGUAGE_INDEPENDENT |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayText(Locale aContentLocale) |
static ELocaleName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ELocaleName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ELocaleName ID_LANGUAGE_ALL
public static final ELocaleName ID_LANGUAGE_INDEPENDENT
public static ELocaleName[] values()
for (ELocaleName c : ELocaleName.values()) System.out.println(c);
public static ELocaleName valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nullable public String getDisplayText(@Nonnull Locale aContentLocale)
getDisplayText in interface IHasDisplayTextaContentLocale - The locale to be used for resolving. May not be null.null if the text could not be resolved in the passed
locale.Copyright © 2014–2016 Philip Helger. All rights reserved.