public static enum SerialComManager.NUMOFBYTES extends Enum<SerialComManager.NUMOFBYTES>
Pre-defined enum constants for defining number of bytes given data can be represented in.
| Enum Constant and Description |
|---|
NUM_2
Integer value requires 16 bits.
|
NUM_4
Integer value requires 32 bits.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static SerialComManager.NUMOFBYTES |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerialComManager.NUMOFBYTES[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialComManager.NUMOFBYTES NUM_2
Integer value requires 16 bits.
public static final SerialComManager.NUMOFBYTES NUM_4
Integer value requires 32 bits.
public static SerialComManager.NUMOFBYTES[] values()
for (SerialComManager.NUMOFBYTES c : SerialComManager.NUMOFBYTES.values()) System.out.println(c);
public static SerialComManager.NUMOFBYTES 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 int getValue()
Copyright © 2017. All rights reserved.