public enum SerialStopBits extends Enum<SerialStopBits>
| Enum Constant | Description |
|---|---|
One |
One stop bit.
|
OnePointFive |
One and a half stop bits.
|
Two |
Two stop bits.
|
| Modifier and Type | Field | Description |
|---|---|---|
static int |
ONE_POINT_FIVE_STOP_BITS |
Code value for 1.5 stop bits.
|
static int |
ONE_STOP_BIT |
Code value for one stop bit.
|
static int |
TWO_STOP_BITS |
Code value for two stop bits.
|
| Modifier and Type | Method | Description |
|---|---|---|
static SerialStopBits |
forCode(int code) |
Get an enum instance for a code value.
|
int |
getCode() |
Get the code value.
|
static SerialStopBits |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static SerialStopBits[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerialStopBits One
public static final SerialStopBits OnePointFive
public static final SerialStopBits Two
public static final int ONE_STOP_BIT
public static final int ONE_POINT_FIVE_STOP_BITS
public static final int TWO_STOP_BITS
public static SerialStopBits[] values()
for (SerialStopBits c : SerialStopBits.values()) System.out.println(c);
public static SerialStopBits 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 getCode()
public static SerialStopBits forCode(int code)
code - the codeIllegalArgumentException - if code is not a valid value