Package com.diozero.api
Enum SerialConstants.Parity
- java.lang.Object
-
- java.lang.Enum<SerialConstants.Parity>
-
- com.diozero.api.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
All Methods Static Methods Concrete Methods 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 Detail
-
NO_PARITY
public static final SerialConstants.Parity NO_PARITY
-
EVEN_PARITY
public static final SerialConstants.Parity EVEN_PARITY
-
ODD_PARITY
public static final SerialConstants.Parity ODD_PARITY
-
MARK_PARITY
public static final SerialConstants.Parity MARK_PARITY
-
SPACE_PARITY
public static final SerialConstants.Parity SPACE_PARITY
-
-
Method Detail
-
values
public static SerialConstants.Parity[] 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 (SerialConstants.Parity c : SerialConstants.Parity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SerialConstants.Parity 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 nameNullPointerException
- if the argument is null
-
-