public static enum WebSocketMessage.Type extends EnumSE<WebSocketMessage.Type>
列挙型定数と説明 |
---|
BINARY バイナリ WebSocket メッセージ。 |
PING WebSocket ping。 |
PONG WebSocket ピンポン。 |
TEXT テキスト WebSocket メッセージ。 |
修飾子と型 | メソッドと説明 |
---|---|
static WebSocketMessage.Type | valueOf(StringSE name) 指定された名前を持つこの型の列挙定数を返します。 |
static WebSocketMessage.Type[] | values() この列挙型の定数を含む配列を、宣言されている順序で返します。 |
cloneSE, compareToSE, equalsSE, finalizeSE, getDeclaringClassSE, hashCodeSE, nameSE, ordinalSE, toStringSE, valueOfSE
getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public static final WebSocketMessage.Type TEXT
public static final WebSocketMessage.Type BINARY
public static final WebSocketMessage.Type PING
public static final WebSocketMessage.Type PONG
public static WebSocketMessage.Type[] values()
for (WebSocketMessage.Type c : WebSocketMessage.Type.values()) System.out.println(c);
public static WebSocketMessage.Type valueOf(StringSE name)
name
- 返される列挙定数の名前。IllegalArgumentExceptionSE
- この列挙型に指定された名前の定数がない場合 NullPointerExceptionSE
- 引数が null の場合