public static enum PeerTestState.Role extends Enum<PeerTestState.Role>
Modifier and Type | Method and Description |
---|---|
static PeerTestState.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeerTestState.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeerTestState.Role ALICE
public static final PeerTestState.Role BOB
public static final PeerTestState.Role CHARLIE
public static PeerTestState.Role[] values()
for (PeerTestState.Role c : PeerTestState.Role.values()) System.out.println(c);
public static PeerTestState.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 null