public enum CommonCommandCode extends Enum<CommonCommandCode> implements CommandCode
| Enum Constant and Description |
|---|
HEARTBEAT |
HEARTBEAT_VALUE| Modifier and Type | Method and Description |
|---|---|
short |
value() |
static CommonCommandCode |
valueOf(short value) |
static CommonCommandCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonCommandCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommonCommandCode HEARTBEAT
public static CommonCommandCode[] values()
for (CommonCommandCode c : CommonCommandCode.values()) System.out.println(c);
public static CommonCommandCode 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 short value()
value in interface CommandCodepublic static CommonCommandCode valueOf(short value)
Copyright © 2024. All rights reserved.