jerklib.events
Enum AwayEvent.EventType

java.lang.Object
  extended by java.lang.Enum<AwayEvent.EventType>
      extended by 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


Enum Constant Summary
RETURNED_FROM_AWAY
           
USER_IS_AWAY
           
WENT_AWAY
           
 
Method Summary
static AwayEvent.EventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AwayEvent.EventType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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