com.esri.core.gps
Enum BaudRate
java.lang.Object
java.lang.Enum<BaudRate>
com.esri.core.gps.BaudRate
- All Implemented Interfaces:
- Serializable, Comparable<BaudRate>
public enum BaudRate
- extends Enum<BaudRate>
Used to specify connection speed of the serial port.
The number in the suffix of the Enum value indicates the baud rate.
BAUD_1200
public static final BaudRate BAUD_1200
BAUD_2400
public static final BaudRate BAUD_2400
BAUD_4800
public static final BaudRate BAUD_4800
BAUD_9600
public static final BaudRate BAUD_9600
BAUD_14400
public static final BaudRate BAUD_14400
BAUD_19200
public static final BaudRate BAUD_19200
BAUD_38400
public static final BaudRate BAUD_38400
BAUD_56000
public static final BaudRate BAUD_56000
BAUD_57600
public static final BaudRate BAUD_57600
BAUD_115200
public static final BaudRate BAUD_115200
values
public static BaudRate[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (BaudRate c : BaudRate.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BaudRate valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getValue
public int getValue()
getFromCode
public static BaudRate getFromCode(String code)
Copyright © 2012. All Rights Reserved.