public static enum MemberState.Role extends Enum<MemberState.Role>
| Enum Constant and Description |
|---|
CANDIDATE |
FOLLOWER |
LEADER |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static MemberState.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemberState.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemberState.Role UNKNOWN
public static final MemberState.Role CANDIDATE
public static final MemberState.Role LEADER
public static final MemberState.Role FOLLOWER
public static MemberState.Role[] values()
for (MemberState.Role c : MemberState.Role.values()) System.out.println(c);
public static MemberState.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 nullCopyright © 2023. All rights reserved.