Enum SocketIOPacketImpl.PacketType
- java.lang.Object
-
- java.lang.Enum<SocketIOPacketImpl.PacketType>
-
- org.atmosphere.socketio.transport.SocketIOPacketImpl.PacketType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SocketIOPacketImpl.PacketType>
- Enclosing class:
- SocketIOPacketImpl
public static enum SocketIOPacketImpl.PacketType extends java.lang.Enum<SocketIOPacketImpl.PacketType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SocketIOPacketImpl.PacketTypefromInt(int val)intvalue()static SocketIOPacketImpl.PacketTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SocketIOPacketImpl.PacketType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final SocketIOPacketImpl.PacketType UNKNOWN
-
DISCONNECT
public static final SocketIOPacketImpl.PacketType DISCONNECT
-
CONNECT
public static final SocketIOPacketImpl.PacketType CONNECT
-
HEARTBEAT
public static final SocketIOPacketImpl.PacketType HEARTBEAT
-
MESSAGE
public static final SocketIOPacketImpl.PacketType MESSAGE
-
JSON
public static final SocketIOPacketImpl.PacketType JSON
-
EVENT
public static final SocketIOPacketImpl.PacketType EVENT
-
ACK
public static final SocketIOPacketImpl.PacketType ACK
-
ERROR
public static final SocketIOPacketImpl.PacketType ERROR
-
NOOP
public static final SocketIOPacketImpl.PacketType NOOP
-
-
Method Detail
-
values
public static SocketIOPacketImpl.PacketType[] 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 (SocketIOPacketImpl.PacketType c : SocketIOPacketImpl.PacketType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SocketIOPacketImpl.PacketType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
value
public int value()
-
fromInt
public static SocketIOPacketImpl.PacketType fromInt(int val)
-
-