public static enum Constants.LeadershipStatus extends java.lang.Enum<Constants.LeadershipStatus>
| Enum Constant and Description |
|---|
LEADER |
NON_LEADER |
| Modifier and Type | Method and Description |
|---|---|
static Constants.LeadershipStatus |
decode(int value)
Decode the given integer into a LeadershipStatus
|
static Constants.LeadershipStatus |
decode(java.lang.String value)
Decode the given String into a LeadershipStatus
|
int |
toInt()
Convert the leadership status to integer
|
static Constants.LeadershipStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constants.LeadershipStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.LeadershipStatus NON_LEADER
public static final Constants.LeadershipStatus LEADER
public static Constants.LeadershipStatus[] values()
for (Constants.LeadershipStatus c : Constants.LeadershipStatus.values()) System.out.println(c);
public static Constants.LeadershipStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int toInt()
public static Constants.LeadershipStatus decode(int value) throws StreamBaseException
value - input statusStreamBaseException - for an unknown LeadershipStatuspublic static Constants.LeadershipStatus decode(java.lang.String value) throws StreamBaseException
value - input statusStreamBaseException - for an unknown LeadershipStatus