public static enum Com.Parity extends java.lang.Enum<Com.Parity>
Enum Constant and Description |
---|
EVEN_PARITY
Enable even parity.
|
NONE_PARITY
None parity.
|
ODD_PARITY
Enable odd parity.
|
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
static Com.Parity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Com.Parity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Com.Parity NONE_PARITY
public static final Com.Parity EVEN_PARITY
public static final Com.Parity ODD_PARITY
public static Com.Parity[] values()
for (Com.Parity c : Com.Parity.values()) System.out.println(c);
public static Com.Parity valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null