public enum BaudRate extends Enum<BaudRate>
| Enum Constant and Description |
|---|
BR1000000
1000000 baud
|
BR115200
115200 baud
|
BR19200
19200 baud
|
BR200000
200000 baud
|
BR2400
2400 baud
|
BR250000
250000 baud
|
BR38400
38400 baud
|
BR400000
400000 baud
|
BR500000
500000 baud
|
BR57600
57600 baud
|
BR9600
9600 baud
|
| Modifier and Type | Method and Description |
|---|---|
static BaudRate |
get(int val,
BaudRate def)
Finds the BaudRate with the corresponding int value.
|
int |
getInt()
Returns the baud rate as an int.
|
String |
toString() |
static BaudRate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaudRate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaudRate BR1000000
public static final BaudRate BR500000
public static final BaudRate BR400000
public static final BaudRate BR250000
public static final BaudRate BR200000
public static final BaudRate BR115200
public static final BaudRate BR57600
public static final BaudRate BR38400
public static final BaudRate BR19200
public static final BaudRate BR9600
public static final BaudRate BR2400
public static BaudRate[] values()
for (BaudRate c : BaudRate.values()) System.out.println(c);
public static BaudRate 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 getInt()
Copyright © 2011-2014. All Rights Reserved.