Enum Class JSerialCommChannelConfig.Paritybit
java.lang.Object
java.lang.Enum<JSerialCommChannelConfig.Paritybit>
org.openremote.agent.protocol.serial.JSerialCommChannelConfig.Paritybit
- All Implemented Interfaces:
Serializable
,Comparable<JSerialCommChannelConfig.Paritybit>
,Constable
- Enclosing interface:
JSerialCommChannelConfig
public static enum JSerialCommChannelConfig.Paritybit
extends Enum<JSerialCommChannelConfig.Paritybit>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionint
value()
valueOf
(int value) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static JSerialCommChannelConfig.Paritybit[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No parity bit will be sent with each data character at all -
ODD
An odd parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an even number of bits set to 1. -
EVEN
An even parity bit will be sent with each data character, ie. will be set to 1 if the data character contains an odd number of bits set to 1. -
MARK
A mark parity bit (ie. always 1) will be sent with each data character -
SPACE
A space parity bit (ie. always 0) will be sent with each data character
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-