jerklib.events
Enum AwayEvent.EventType
java.lang.Object
java.lang.Enum<AwayEvent.EventType>
jerklib.events.AwayEvent.EventType
- All Implemented Interfaces:
- Serializable, Comparable<AwayEvent.EventType>
- Enclosing interface:
- AwayEvent
public static enum AwayEvent.EventType
- extends Enum<AwayEvent.EventType>
An enum to determine the type of event that was fired.
WENT_AWAY is when user of lib goes away.
RETURNED_FROM_AWAY is when user of lib returns from away state.
USER_IS_AWAY is when some other user goes away
WENT_AWAY
public static final AwayEvent.EventType WENT_AWAY
RETURNED_FROM_AWAY
public static final AwayEvent.EventType RETURNED_FROM_AWAY
USER_IS_AWAY
public static final AwayEvent.EventType USER_IS_AWAY
values
public static AwayEvent.EventType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (AwayEvent.EventType c : AwayEvent.EventType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AwayEvent.EventType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null