public static enum Message.Op extends Enum<Message.Op>
Enum Constant and Description |
---|
RequestExpectResponse |
RequestNoResponse |
Response |
Modifier and Type | Method and Description |
---|---|
static Message.Op |
fromByte(byte ordinal) |
static Message.Op |
fromBytes(byte[] opBytes) |
byte |
toByte() |
static Message.Op |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.Op[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.Op RequestNoResponse
public static final Message.Op RequestExpectResponse
public static final Message.Op Response
public static Message.Op[] values()
for (Message.Op c : Message.Op.values()) System.out.println(c);
public static Message.Op 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 static Message.Op fromBytes(byte[] opBytes)
public byte toByte()
public static Message.Op fromByte(byte ordinal)
Copyright © 2016. All Rights Reserved.