public enum ApolloWSMessageType extends Enum<ApolloWSMessageType>
ApolloWSMessage
types.Enum Constant and Description |
---|
COMPLETE |
CONNECTION_ACK |
CONNECTION_ERROR |
CONNECTION_INIT |
CONNECTION_KEEP_ALIVE |
CONNECTION_TERMINATE |
DATA |
ERROR |
START |
STOP |
Modifier and Type | Method and Description |
---|---|
static ApolloWSMessageType |
from(String type)
Get an
ApolloWSMessageType from its text representation. |
String |
getText() |
static ApolloWSMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApolloWSMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApolloWSMessageType CONNECTION_INIT
public static final ApolloWSMessageType CONNECTION_TERMINATE
public static final ApolloWSMessageType START
public static final ApolloWSMessageType STOP
public static final ApolloWSMessageType CONNECTION_ACK
public static final ApolloWSMessageType CONNECTION_ERROR
public static final ApolloWSMessageType CONNECTION_KEEP_ALIVE
public static final ApolloWSMessageType DATA
public static final ApolloWSMessageType ERROR
public static final ApolloWSMessageType COMPLETE
public static ApolloWSMessageType[] values()
for (ApolloWSMessageType c : ApolloWSMessageType.values()) System.out.println(c);
public static ApolloWSMessageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getText()
ApolloWSMessage
public static ApolloWSMessageType from(String type)
ApolloWSMessageType
from its text representation.type
- the message type text representationCopyright © 2021 Eclipse. All rights reserved.