- java.lang.Object
-
- java.lang.Enum<WsOpcode>
-
- swim.ws.WsOpcode
-
- All Implemented Interfaces:
Serializable
,Comparable<WsOpcode>
,Debug
public enum WsOpcode extends Enum<WsOpcode> implements Debug
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY
CLOSE
CONTINUATION
PING
PONG
RESERVED_3
RESERVED_4
RESERVED_5
RESERVED_6
RESERVED_7
RESERVED_B
RESERVED_C
RESERVED_D
RESERVED_E
RESERVED_F
TEXT
-
Field Summary
Fields Modifier and Type Field Description int
code
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Output<T>
debug(Output<T> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.static WsOpcode
from(int code)
boolean
isBinary()
boolean
isClose()
boolean
isContinuation()
boolean
isControl()
boolean
isData()
boolean
isPing()
boolean
isPong()
boolean
isReserved()
boolean
isText()
static WsOpcode
valueOf(String name)
Returns the enum constant of this type with the specified name.static WsOpcode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINUATION
public static final WsOpcode CONTINUATION
-
TEXT
public static final WsOpcode TEXT
-
BINARY
public static final WsOpcode BINARY
-
RESERVED_3
public static final WsOpcode RESERVED_3
-
RESERVED_4
public static final WsOpcode RESERVED_4
-
RESERVED_5
public static final WsOpcode RESERVED_5
-
RESERVED_6
public static final WsOpcode RESERVED_6
-
RESERVED_7
public static final WsOpcode RESERVED_7
-
CLOSE
public static final WsOpcode CLOSE
-
PING
public static final WsOpcode PING
-
PONG
public static final WsOpcode PONG
-
RESERVED_B
public static final WsOpcode RESERVED_B
-
RESERVED_C
public static final WsOpcode RESERVED_C
-
RESERVED_D
public static final WsOpcode RESERVED_D
-
RESERVED_E
public static final WsOpcode RESERVED_E
-
RESERVED_F
public static final WsOpcode RESERVED_F
-
-
Method Detail
-
values
public static WsOpcode[] 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 (WsOpcode c : WsOpcode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WsOpcode 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 nameNullPointerException
- if the argument is null
-
isData
public boolean isData()
-
isControl
public boolean isControl()
-
isReserved
public boolean isReserved()
-
isContinuation
public boolean isContinuation()
-
isText
public boolean isText()
-
isBinary
public boolean isBinary()
-
isClose
public boolean isClose()
-
isPing
public boolean isPing()
-
isPong
public boolean isPong()
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
from
public static WsOpcode from(int code)
-
-