Package com.diozero.api
Enum SerialConstants.Parity
- All Implemented Interfaces:
Serializable
,Comparable<SerialConstants.Parity>
- Enclosing interface:
- SerialConstants
public static enum SerialConstants.Parity extends Enum<SerialConstants.Parity>
Specifies how error detection is carried out.
-
Enum Constant Summary
Enum Constants Enum Constant Description EVEN_PARITY
MARK_PARITY
NO_PARITY
ODD_PARITY
SPACE_PARITY
-
Method Summary
Modifier and Type Method Description static SerialConstants.Parity
valueOf(String name)
Returns the enum constant of this type with the specified name.static SerialConstants.Parity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NO_PARITY
-
EVEN_PARITY
-
ODD_PARITY
-
MARK_PARITY
-
SPACE_PARITY
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-