public static enum SerialPort.DataBits extends Enum<SerialPort.DataBits>
| Enum Constant and Description |
|---|
EIGHT
8 data bits.
|
FIVE
5 data bits.
|
SEVEN
7 data bits.
|
SIX
6 data bits.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
toInt()
Returns the int representation of the data bits.
|
String |
toString() |
static SerialPort.DataBits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerialPort.DataBits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialPort.DataBits FIVE
public static final SerialPort.DataBits SIX
public static final SerialPort.DataBits SEVEN
public static final SerialPort.DataBits EIGHT
public static SerialPort.DataBits[] values()
for (SerialPort.DataBits c : SerialPort.DataBits.values()) System.out.println(c);
public static SerialPort.DataBits 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 abstract int toInt()
public String toString()
toString in class Enum<SerialPort.DataBits>Copyright © 2011. All Rights Reserved.