public enum TeamEvent extends Enum<TeamEvent>
| Enum Constant and Description |
|---|
BECOME_LEADER
Become leader of the group
|
BECOME_MEMBER
Become member of group
|
BECOME_SUSPENDED
Become a suspended member of group
|
MEMBER_JOIN
A new Member joined the group
|
MEMBER_LEAVE
A Member left the group
|
NEW_LEADER
New leader elected
|
| Modifier and Type | Method and Description |
|---|---|
static TeamEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TeamEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TeamEvent BECOME_SUSPENDED
public static final TeamEvent BECOME_MEMBER
public static final TeamEvent BECOME_LEADER
public static final TeamEvent MEMBER_JOIN
public static final TeamEvent MEMBER_LEAVE
public static final TeamEvent NEW_LEADER
public static TeamEvent[] values()
for (TeamEvent c : TeamEvent.values()) System.out.println(c);
public static TeamEvent 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 © 2014. All Rights Reserved.