public static enum RoleManager.Role extends Enum<RoleManager.Role>
Modifier and Type | Method and Description |
---|---|
static RoleManager.Role |
fromNxRole(int nxRole) |
int |
toNxRole() |
static RoleManager.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoleManager.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoleManager.Role EQUAL
public static final RoleManager.Role MASTER
public static final RoleManager.Role SLAVE
public static RoleManager.Role[] values()
for (RoleManager.Role c : RoleManager.Role.values()) System.out.println(c);
public static RoleManager.Role 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 toNxRole()
public static RoleManager.Role fromNxRole(int nxRole)
Copyright © 2015. All rights reserved.