Enum SerialChannelOptionsParity
- java.lang.Object
-
- java.lang.Enum<SerialChannelOptionsParity>
-
- org.apache.plc4x.java.transport.serial.SerialChannelOptionsParity
-
- All Implemented Interfaces:
Serializable,Comparable<SerialChannelOptionsParity>
public enum SerialChannelOptionsParity extends Enum<SerialChannelOptionsParity>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVEN_PARITYMARK_PARITYNO_PARITYODD_PARITYSPACE_PARITY
-
Field Summary
Fields Modifier and Type Field Description intvalue
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SerialChannelOptionsParityvalueOf(String name)Returns the enum constant of this type with the specified name.static SerialChannelOptionsParity[]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 SerialChannelOptionsParity NO_PARITY
-
ODD_PARITY
public static final SerialChannelOptionsParity ODD_PARITY
-
EVEN_PARITY
public static final SerialChannelOptionsParity EVEN_PARITY
-
MARK_PARITY
public static final SerialChannelOptionsParity MARK_PARITY
-
SPACE_PARITY
public static final SerialChannelOptionsParity SPACE_PARITY
-
-
Method Detail
-
values
public static SerialChannelOptionsParity[] 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 (SerialChannelOptionsParity c : SerialChannelOptionsParity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SerialChannelOptionsParity 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
-
-