public enum AcceptedLanguage extends Enum<AcceptedLanguage>
| Modifier and Type | Method and Description |
|---|---|
String |
getLanguage() |
void |
setLanguage(String language) |
static AcceptedLanguage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AcceptedLanguage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AcceptedLanguage FA_IR
public static final AcceptedLanguage EN_US
public static AcceptedLanguage[] values()
for (AcceptedLanguage c : AcceptedLanguage.values()) System.out.println(c);
public static AcceptedLanguage 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 nullpublic String getLanguage()
public void setLanguage(String language)
Copyright © 2020. All rights reserved.