public enum RoleType extends Enum<RoleType> implements com.facebook.thrift.TEnum
| Modifier and Type | Method and Description |
|---|---|
static RoleType |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.
|
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.
|
static RoleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoleType GOD
public static final RoleType ADMIN
public static final RoleType DBA
public static final RoleType USER
public static final RoleType GUEST
public static final RoleType BASIC
public static RoleType[] values()
for (RoleType c : RoleType.values()) System.out.println(c);
public static RoleType 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 int getValue()
getValue in interface com.facebook.thrift.TEnumpublic static RoleType findByValue(int value)
Copyright © 2024. All rights reserved.