public static enum Cmd.DataType extends Enum<Cmd.DataType>
Enum Constant and Description |
---|
BYTE
one byte(8 bits)
|
INT
4 bytes(32 bits)
|
LONG
8 bytes(64 bits)
|
SHORT
two bytes(16 bits)
|
Modifier and Type | Method and Description |
---|---|
static Cmd.DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cmd.DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cmd.DataType BYTE
public static final Cmd.DataType SHORT
public static final Cmd.DataType INT
public static final Cmd.DataType LONG
public static Cmd.DataType[] values()
for (Cmd.DataType c : Cmd.DataType.values()) System.out.println(c);
public static Cmd.DataType 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 nullCopyright © 2020. All rights reserved.