Package io.netty.channel.rxtx
Enum RxtxChannelConfig.Databits
- java.lang.Object
-
- java.lang.Enum<RxtxChannelConfig.Databits>
-
- io.netty.channel.rxtx.RxtxChannelConfig.Databits
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RxtxChannelConfig.Databits>
- Enclosing interface:
- RxtxChannelConfig
public static enum RxtxChannelConfig.Databits extends java.lang.Enum<RxtxChannelConfig.Databits>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATABITS_5
5 data bits will be used for each character (ie.DATABITS_6
6 data bits will be used for each characterDATABITS_7
7 data bits will be used for each character (ie.DATABITS_8
8 data bits will be used for each character (ie. binary data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
value()
static RxtxChannelConfig.Databits
valueOf(int value)
Returns the enum constant of this type with the specified name.static RxtxChannelConfig.Databits
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RxtxChannelConfig.Databits[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATABITS_5
public static final RxtxChannelConfig.Databits DATABITS_5
5 data bits will be used for each character (ie. Baudot code)
-
DATABITS_6
public static final RxtxChannelConfig.Databits DATABITS_6
6 data bits will be used for each character
-
DATABITS_7
public static final RxtxChannelConfig.Databits DATABITS_7
7 data bits will be used for each character (ie. ASCII)
-
DATABITS_8
public static final RxtxChannelConfig.Databits DATABITS_8
8 data bits will be used for each character (ie. binary data)
-
-
Method Detail
-
values
public static RxtxChannelConfig.Databits[] 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 (RxtxChannelConfig.Databits c : RxtxChannelConfig.Databits.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RxtxChannelConfig.Databits valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
valueOf
public static RxtxChannelConfig.Databits valueOf(int value)
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:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-