giovynet.serial
Enum Baud

java.lang.Object
  extended by java.lang.Enum<Baud>
      extended by giovynet.serial.Baud
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Baud>

public enum Baud
extends java.lang.Enum<Baud>

Baud Rate


Enum Constant Summary
_115200
          115200 bps
_1200
          1200 bps
_19200
          19200 bps
_2400
          2400 bps
_38400
          38400 bps
_460800
          460800 bps
_4800
          4800 bps
_57600
          57600 bps
_9600
          9600 bps
 
Method Summary
 java.lang.String getValue()
          Gets the value of Baud.
static Baud valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Baud[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

_1200

public static final Baud _1200
1200 bps


_2400

public static final Baud _2400
2400 bps


_4800

public static final Baud _4800
4800 bps


_9600

public static final Baud _9600
9600 bps


_19200

public static final Baud _19200
19200 bps


_38400

public static final Baud _38400
38400 bps


_57600

public static final Baud _57600
57600 bps


_115200

public static final Baud _115200
115200 bps


_460800

public static final Baud _460800
460800 bps

Method Detail

values

public static Baud[] 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 (Baud c : Baud.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Baud valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public java.lang.String getValue()
Gets the value of Baud.

Returns:
String