public enum UserType extends Enum<UserType>
| Modifier and Type | Field and Description |
|---|---|
private String |
key |
private String |
value |
| Modifier and Type | Method and Description |
|---|---|
static UserType |
getByKey(String key) |
String |
getKey() |
static String |
getKeyByValue(String value) |
String |
getValue() |
static String |
getValueByKey(String key) |
static UserType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static UserType[] values()
for (UserType c : UserType.values()) System.out.println(c);
public static UserType 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 static String getKeyByValue(String value)
public static String getValueByKey(String key)
Copyright © 2024. All rights reserved.