org.atmosphere.wasync
Enum Socket.EVENT
java.lang.Object
java.lang.Enum<Socket.EVENT>
org.atmosphere.wasync.Socket.EVENT
- All Implemented Interfaces:
- Serializable, Comparable<Socket.EVENT>
- Enclosing interface:
- Socket
public static enum Socket.EVENT
- extends Enum<Socket.EVENT>
|
Method Summary |
static Socket.EVENT |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Socket.EVENT[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
CLOSE
public static final Socket.EVENT CLOSE
ERROR
public static final Socket.EVENT ERROR
HEADER
public static final Socket.EVENT HEADER
STATUS
public static final Socket.EVENT STATUS
MESSAGE
public static final Socket.EVENT MESSAGE
values
public static Socket.EVENT[] 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 (Socket.EVENT c : Socket.EVENT.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Socket.EVENT 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
Copyright © 2013. All Rights Reserved.