public enum EndpointType extends Enum<EndpointType>
Enum Constant and Description |
---|
BROKER |
CONTROLLER |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static EndpointType |
fromId(byte id) |
byte |
id() |
static EndpointType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EndpointType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EndpointType UNKNOWN
public static final EndpointType BROKER
public static final EndpointType CONTROLLER
public static EndpointType[] values()
for (EndpointType c : EndpointType.values()) System.out.println(c);
public static EndpointType 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 byte id()
public static EndpointType fromId(byte id)